Mercurial > projects > ldc
comparison test/union6.d @ 78:2332006e1fa4 trunk
[svn r82] Fixed: Fall-through switch cases were broken.
author | lindquist |
---|---|
date | Wed, 31 Oct 2007 20:50:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
77:714057ff2dbb | 78:2332006e1fa4 |
---|---|
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 } |