annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
601
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
1 // $HeadURL$
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
2 // $Date$
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
3 // $Author$
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
4
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
5 // @author@ Deewiant <deewiant.doesnotlike.spam@gmail.com>
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
6 // @date@ 2005-07-07
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
7 // @uri@ news:dajn75$1hfl$1@digitaldaemon.com
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
8 // @desc@ Internal error: ../ztc/cod2.c 4211
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
9
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
10 module dstress.run.b.bug_cod2_4211_E;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
11
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
12 struct Foo{
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
13 char a, b, c;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
14 }
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
15
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
16 int bar(Foo e){
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
17 return e.a*1 + e.b*2 + e.c*3;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
18 }
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
19
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
20 int main() {
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
21 Foo d;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
22 d.a=1;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
23 d.b=2;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
24 d.c=3;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
25 assert(bar(d)==14);
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
26 return 0;
9156914a7518 Internal error: ../ztc/cod2.c 4211
thomask
parents:
diff changeset
27 }