606
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 // @author@ Deewiant <deewiant.doesnotlike.spam@gmail.com>
|
|
6 // @date@ 2005-07-07
|
1489
|
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=4472
|
606
|
8 // @desc@ Internal error: ../ztc/cod2.c 4211
|
|
9
|
|
10 module dstress.run.b.bug_cod2_4211_U;
|
|
11
|
|
12 struct Foo{
|
|
13 byte a, b, c;
|
|
14 }
|
|
15
|
|
16 int bar(Foo e){
|
|
17 return e.a + e.b + e.c;
|
|
18 }
|
|
19
|
|
20 int main() {
|
|
21 Foo d;
|
|
22 d.a=1;
|
|
23 d.b=2;
|
|
24 d.c=3;
|
1089
|
25
|
|
26 if(bar(d) != 6){
|
|
27 assert(0);
|
|
28 }
|
1091
|
29 return 0;
|
606
|
30 }
|