Mercurial > projects > dstress
comparison run/b/bug_cod2_4211_E.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 |
comparison
equal
deleted
inserted
replaced
600:c0ba153df32f | 601:9156914a7518 |
---|---|
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_E; | |
11 | |
12 struct Foo{ | |
13 char a, b, c; | |
14 } | |
15 | |
16 int bar(Foo e){ | |
17 return e.a*1 + e.b*2 + e.c*3; | |
18 } | |
19 | |
20 int main() { | |
21 Foo d; | |
22 d.a=1; | |
23 d.b=2; | |
24 d.c=3; | |
25 assert(bar(d)==14); | |
26 return 0; | |
27 } |