Mercurial > projects > dstress
annotate run/b/bug_cod2_4211_C.d @ 601:9156914a7518
Internal error: ../ztc/cod2.c 4211
Deewiant <deewiant.doesnotlike.spam@gmail.com>
2005-07-07
news:dajn75$1hfl$1@digitaldaemon.com
author | thomask |
---|---|
date | Thu, 07 Jul 2005 17:47:55 +0000 |
parents | |
children |
rev | line source |
---|---|
601 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Deewiant <deewiant.doesnotlike.spam@gmail.com> | |
6 // @date@ 2005-07-07 | |
7 // @uri@ news:dajn75$1hfl$1@digitaldaemon.com | |
8 // @desc@ Internal error: ../ztc/cod2.c 4211 | |
9 | |
10 module dstress.run.b.bug_cod2_4211_C; | |
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; | |
25 assert(bar(d)==3); | |
26 return 0; | |
27 } |