annotate run/const_17.d @ 1586:a74f0139fc3d

Fix tests using typeof on types.
author Christian Kamm <kamm incasoftware de>
date Thu, 21 Aug 2008 15:42:21 +0200
parents e979fee5a2cd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
1 // $HeadURL$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
2 // $Date$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
3 // $URL$
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
4
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
5 module dstress.run.const_17;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
6
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
7 const int c = b * 2;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
8 const int a = 1;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
9 const int b = a * 3;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
10
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
11 int main(){
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
12 assert(a==1);
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
13 assert(b==3);
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
14 assert(c==6);
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
15 return 0;
e979fee5a2cd mixin / const int
thomask
parents:
diff changeset
16 }