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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
908
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
1 // $HeadURL$
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
2 // $Date$
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
3 // $Author$
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
4
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
5 // @author@ <regan@netwin.co.nz>
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
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
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
8
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
9 module dstress.run.u.union_16_G;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
10
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
11 struct B {
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
12 int b1;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
13 int b2;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
14 }
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
15
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
16 struct A {
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
17 int a;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
18 union {
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
19 int c;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
20 B b;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
21 }
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
22 }
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
23
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
24 int main(){
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
25 if(A.sizeof != int.sizeof * 3){
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
26 assert(0);
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
27 }
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
28
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
29 A a;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
30
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
31 if(a.sizeof != int.sizeof * 3){
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
32 assert(0);
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
33 }
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
34
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
35
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
36 return 0;
9755f3e63e3d <regan@netwin.co.nz>
thomask
parents:
diff changeset
37 }