Mercurial > projects > dstress
annotate run/u/union_16_E.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_E; | |
10 | |
11 struct A { | |
12 int a; | |
13 B b; | |
14 } | |
15 | |
16 struct B { | |
17 int b1; | |
18 int b2; | |
19 } | |
20 | |
21 | |
22 int main(){ | |
23 if(A.sizeof != int.sizeof * 3){ | |
24 assert(0); | |
25 } | |
26 | |
27 A a; | |
28 | |
29 if(a.sizeof != int.sizeof * 3){ | |
30 assert(0); | |
31 } | |
32 | |
33 | |
34 return 0; | |
35 } |