diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-29 11:33:25 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-29 11:33:25 +0000 |
commit | 133e8040ca85eceb58973922d174f83958b2274f (patch) | |
tree | 139c70de3f1cc73005ffced65fec2cbe24f48f04 /clang/test/CodeGen/union.c | |
parent | 045bf4ff82d728be5e8305670716641fb9685def (diff) | |
download | bcm5719-llvm-133e8040ca85eceb58973922d174f83958b2274f.tar.gz bcm5719-llvm-133e8040ca85eceb58973922d174f83958b2274f.zip |
Rearrange EmitLValueForField a bit to work properly for _Bool bitfields
in unions (we don't want to do the union-specific bitcast for
bit-fields).
llvm-svn: 51678
Diffstat (limited to 'clang/test/CodeGen/union.c')
-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 1e4346d471f..616cf56ece8 100644 --- a/clang/test/CodeGen/union.c +++ b/clang/test/CodeGen/union.c @@ -36,3 +36,6 @@ typedef union{ } q; int qfunc() {q buf; unsigned char* x = buf.x;} +union RR {_Bool a : 1;} RRU; +int RRF(void) {return RRU.a;} + |