Mercurial > projects > dstress
changeset 33:3f81e192da0e
extended integer literal tests
author | thomask |
---|---|
date | Wed, 13 Oct 2004 07:18:13 +0000 |
parents | 315459a24bf4 |
children | 4e11884d76a4 |
files | nocompile/integer_literal_binary_11.d nocompile/integer_literal_binary_12.d nocompile/integer_literal_binary_13.d nocompile/integer_literal_binary_14.d nocompile/integer_literal_dec_01.d nocompile/integer_literal_dec_02.d nocompile/integer_literal_dec_03.d nocompile/integer_literal_dec_04.d nocompile/integer_literal_hex_13.d run/integer_literal_dec_04.d |
diffstat | 10 files changed, 41 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_binary_11.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i = 0b; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_binary_12.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i=0b_; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_binary_13.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i=0b_u; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_binary_14.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i = 0bl; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_dec_01.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + long l = 9_223_372_036_854_775_808; // long.max+1 + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_dec_02.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i = 2_147_483_648; // int.max+1 + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_dec_03.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + short i = 2_147_483_647; // int.max + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/integer_literal_dec_04.d Wed Oct 13 07:18:13 2004 +0000 @@ -0,0 +1,4 @@ +int main(){ + int i = 123A34; + return 0; +}