Mercurial > projects > dstress
annotate run/u/union_16_G.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | 9755f3e63e3d |
children |
rev | line source |
---|---|
908 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <regan@netwin.co.nz> | |
6 // @date@ 2006-03-12 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
908
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=44 |
908 | 8 |
9 module dstress.run.u.union_16_G; | |
10 | |
11 struct B { | |
12 int b1; | |
13 int b2; | |
14 } | |
15 | |
16 struct A { | |
17 int a; | |
18 union { | |
19 int c; | |
20 B b; | |
21 } | |
22 } | |
23 | |
24 int main(){ | |
25 if(A.sizeof != int.sizeof * 3){ | |
26 assert(0); | |
27 } | |
28 | |
29 A a; | |
30 | |
31 if(a.sizeof != int.sizeof * 3){ | |
32 assert(0); | |
33 } | |
34 | |
35 | |
36 return 0; | |
37 } |