annotate run/integer_literal_binary_04.d @ 958:80e1b85295b3

DMD-0.154 review
author thomask
date Thu, 13 Apr 2006 07:34:32 +0000
parents f87ba6507260
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