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 | 1e86b34f15f0502c13750ee1d6cf338def6e2242 (patch) | |
tree | 354eb64d6e241a781217bd73ee90dcfe3c2be5e8 /test | |
parent | bc5ed6ef52d43b5a3c924421aac3c1f0f829dcc8 (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51678 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/union.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c index 1e4346d471..616cf56ece 100644 --- a/test/CodeGen/union.c +++ b/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;} + |