740
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ BCS <BCS_member@pathlink.com>
|
|
6 // @date@ 2005-11-08
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5353
|
740
|
8
|
|
9 module dstress.run.c.const_27_A;
|
|
10
|
|
11 class C{
|
|
12 const int a = 1;
|
|
13 const b = a * 2;
|
|
14 const c = b * 3;
|
|
15 }
|
|
16
|
|
17 int main(){
|
1090
|
18 if(C.a != 1){
|
|
19 assert(0);
|
|
20 }
|
|
21 if(C.b != 2){
|
|
22 assert(0);
|
|
23 }
|
|
24 if(C.c != 6){
|
|
25 assert(0);
|
|
26 }
|
740
|
27
|
|
28 return 0;
|
|
29 }
|