diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/CodeGen/union.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGen/union.c b/clang/test/CodeGen/union.c index b47e697adc5..1e4346d471f 100644 --- a/clang/test/CodeGen/union.c +++ b/clang/test/CodeGen/union.c @@ -31,3 +31,8 @@ enum E9 { one, two }; union S65 { enum E9 a:62; } ; union S65 s65; void fS65() { enum E9 e = s65.a; } +typedef union{ + unsigned char x[65536]; +} q; +int qfunc() {q buf; unsigned char* x = buf.x;} + |