935
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
|
|
6 // @date@ 2005-03-21
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3290
|
935
|
8
|
|
9 module dstress.run.c.const_16_B;
|
|
10
|
1090
|
11 struct StructA{
|
935
|
12 int a;
|
|
13 }
|
|
14
|
|
15 const StructA s = { 1 };
|
|
16 const int x = s.a + 1;
|
|
17
|
|
18 int main(){
|
1090
|
19 if(s.a != 1){
|
|
20 assert(0);
|
|
21 }
|
|
22 if(x != 2){
|
|
23 assert(0);
|
|
24 }
|
935
|
25 return 0;
|
|
26 }
|