From: Eli Friedman Date: Wed, 21 May 2008 13:21:01 +0000 (+0000) Subject: A small testcase; no patch, since it was a bug in a patch I never X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ac5957479f1968b1852d7c1e8d3e397ba0d4f0d;p=clang A small testcase; no patch, since it was a bug in a patch I never committed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51370 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c index b47e697adc..1e4346d471 100644 --- a/test/CodeGen/union.c +++ b/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;} +