Mercurial > projects > dstress
annotate run/s/struct_25_B.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 8a64fe59ff4e |
children |
rev | line source |
---|---|
1034 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ John C <johnch_atms@hotmail.com> | |
6 // @date@ 2006-05-25 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=7325 |
1034 | 8 |
9 module dstress.run.s.struct_25_B; | |
10 | |
11 struct S1 { | |
12 union { | |
13 int a; | |
14 long b; | |
15 S2 c; | |
16 } | |
17 } | |
18 | |
19 struct S2 { | |
20 int d; | |
21 } | |
22 | |
23 int main(){ | |
24 S1 e; | |
25 S2 f; | |
26 e.c = f; | |
27 | |
28 return 0; | |
29 } |