annotate run/integer_literal_hex_04.d @ 1576:b3e16c86558e

[Issue 1398] New: GDC doesn't generate correct code <mariusmuja@gmail.com> 2007-08-04 http://d.puremagic.com/issues/show_bug.cgi?id=1398
author thomask
date Thu, 21 Feb 2008 15:20:08 +0000
parents 2ab8decdc8a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
1 // $HeadURL$
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
2 // $Date$
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
3 // $Author$
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
4
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
5 module dstress.run.integer_literal_hex_04;
f87ba6507260 added missing meta-data
thomask
parents: 28
diff changeset
6
28
17dbcb50e9a5 added binary and hexadecimal integer literal tests
thomask
parents:
diff changeset
7 int main(){
961
2ab8decdc8a0 literal fixes for DMD-0.154
thomask
parents: 374
diff changeset
8 assert( 0xFL == 15);
2ab8decdc8a0 literal fixes for DMD-0.154
thomask
parents: 374
diff changeset
9 assert( 0xFL.sizeof == long.sizeof);
2ab8decdc8a0 literal fixes for DMD-0.154
thomask
parents: 374
diff changeset
10 assert( 0xFL.min == long.min);
2ab8decdc8a0 literal fixes for DMD-0.154
thomask
parents: 374
diff changeset
11 assert( 0xFL.max == long.max);
28
17dbcb50e9a5 added binary and hexadecimal integer literal tests
thomask
parents:
diff changeset
12 return 0;
17dbcb50e9a5 added binary and hexadecimal integer literal tests
thomask
parents:
diff changeset
13 }
17dbcb50e9a5 added binary and hexadecimal integer literal tests
thomask
parents:
diff changeset
14