281
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Manfred Nowak <svv1999@hotmail.com>
|
|
6 // @date@ 2005-02-03
|
|
7 // @uri@ news:cttuih$hpb$1@digitaldaemon.com
|
1384
|
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2852
|
281
|
9
|
|
10 module dstress.run.with_12;
|
|
11
|
|
12 struct Entry{
|
|
13 int a;
|
|
14 }
|
|
15
|
|
16 int main(){
|
|
17 Entry[10] table;
|
|
18
|
1125
|
19 if(table[1].a != 0){
|
|
20 assert(0);
|
|
21 }
|
|
22
|
|
23 with(table[1]){
|
281
|
24 a=1;
|
|
25 }
|
1125
|
26 if(table[1].a != 1){
|
|
27 assert(0);
|
|
28 }
|
281
|
29
|
|
30 return 0;
|
1125
|
31 }
|