diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-01-28 18:22:03 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-01-28 18:22:03 +0000 |
| commit | b1ef991097c1276fae00d19367da78d0b58ddf9a (patch) | |
| tree | 0196215beae554b45d04ce043d8868a4ad61857a /clang/test/CodeGen | |
| parent | 0d61eebd819b4bd511f1a36370e9539d0a33d857 (diff) | |
| download | bcm5719-llvm-b1ef991097c1276fae00d19367da78d0b58ddf9a.tar.gz bcm5719-llvm-b1ef991097c1276fae00d19367da78d0b58ddf9a.zip | |
Fix an incorrect union layout assert. Fixes PR6164.
llvm-svn: 94754
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/union.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/CodeGen/union.c b/clang/test/CodeGen/union.c index b40a405597a..1883ca639b7 100644 --- a/clang/test/CodeGen/union.c +++ b/clang/test/CodeGen/union.c @@ -39,3 +39,6 @@ int qfunc() {q buf; unsigned char* x = buf.x;} union RR {_Bool a : 1;} RRU; int RRF(void) {return RRU.a;} +// PR6164 +typedef union T0 { unsigned int : 0; } T0; +T0 t0; |

