Files
ldc/tests/mini/union6.d

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;
}