comparison run/const_05.d @ 153:ce33adb482a7

added const tests
author thomask
date Thu, 25 Nov 2004 15:25:04 +0000
parents
children
comparison
equal deleted inserted replaced
152:5b69c210daee 153:ce33adb482a7
1 // $HeadURL$
2 // $Date$
3 // $URL$
4
5 module dstress.run.const_05;
6
7 const int c = b + 1;
8 const int a = 1;
9 const int b = a + 1;
10
11 int main(){
12 assert(a==1);
13 assert(b==2);
14 assert(c==3);
15 return 0;
16 }