diff options
Diffstat (limited to 'test/CodeGen/union.c')
-rw-r--r-- | test/CodeGen/union.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c index 5c89e2d72a7e..730218210213 100644 --- a/test/CodeGen/union.c +++ b/test/CodeGen/union.c @@ -44,3 +44,16 @@ typedef union T0 { unsigned int : 0; } T0; T0 t0; union { int large_bitfield: 31; char c } u2; + +struct dt_t_s { + union { + long long u : 56; + } __attribute__((packed)); +}; +struct { + struct { + struct { + struct dt_t_s t; + }; + }; +} a; |