comparison tests/mini/union6.d @ 341:1bb99290e03a trunk

[svn r362] Started merging the old 'test' dir as well as the newer 'tangotests' dir into 'tests/mini' and 'tests/minicomplex'.
author lindquist
date Sun, 13 Jul 2008 02:51:19 +0200
parents test/union6.d@2332006e1fa4
children 44f08170f4ef
comparison
equal deleted inserted replaced
340:351c0077d0b3 341:1bb99290e03a
1 module union6;
2
3 pragma(LLVM_internal, "notypeinfo") {
4 struct S
5 {
6 byte a;
7 byte b;
8 }
9 union U
10 {
11 byte a;
12 byte b;
13 S c;
14 }
15 }
16
17 void main()
18 {
19 U u;
20 auto a = u.c.b;
21 //auto c = u.s.l;
22 }