mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
23 lines
250 B
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;
|
|
}
|