Files
ldc/test/union6.d
2007-10-31 20:50:21 +01:00

23 lines
250 B
D

module union6;
pragma(LLVM_internal, "notypeinfo") {
struct S
{
byte a;
byte b;
}
union U
{
byte a;
byte b;
S c;
}
}
void main()
{
U u;
auto a = u.c.b;
//auto c = u.s.l;
}