annotate run/c/const_27_A.d @ 1489:b8c0195059d9

changed nntp: URLs to http: URLs
author thomask
date Mon, 09 Apr 2007 13:47:01 +0000
parents f4e98d870b57
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
740
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
1 // $HeadURL$
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
2 // $Date$
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
3 // $Author$
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
4
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
5 // @author@ BCS <BCS_member@pathlink.com>
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
6 // @date@ 2005-11-08
1489
b8c0195059d9 changed nntp: URLs to http: URLs
thomask
parents: 1090
diff changeset
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=5353
740
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
8
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
9 module dstress.run.c.const_27_A;
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
10
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
11 class C{
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
12 const int a = 1;
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
13 const b = a * 2;
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
14 const c = b * 3;
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
15 }
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
16
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
17 int main(){
1090
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
18 if(C.a != 1){
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
19 assert(0);
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
20 }
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
21 if(C.b != 2){
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
22 assert(0);
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
23 }
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
24 if(C.c != 6){
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
25 assert(0);
f4e98d870b57 pre DMD-0.163 review
thomask
parents: 740
diff changeset
26 }
740
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
27
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
28 return 0;
a14f98c3ae83 catch-up commit of bug reports
thomask
parents:
diff changeset
29 }