annotate run/integer_literal_binary_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 80e1b85295b3
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_binary_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(){
958
80e1b85295b3 DMD-0.154 review
thomask
parents: 374
diff changeset
8 static assert( 0b101L == 5);
80e1b85295b3 DMD-0.154 review
thomask
parents: 374
diff changeset
9 static assert( 0b101L.sizeof == long.sizeof);
80e1b85295b3 DMD-0.154 review
thomask
parents: 374
diff changeset
10 static assert( 0b101L.min == long.min);
80e1b85295b3 DMD-0.154 review
thomask
parents: 374
diff changeset
11 static assert( 0b101L.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