diff options
author | Ken Dyck <kd@kendyck.com> | 2011-02-28 02:01:38 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-02-28 02:01:38 +0000 |
commit | f079b735d876f75e67b8dcc6980d0b742903ce0d (patch) | |
tree | 0800184b1c48e29ad83ab475136e3ccfd6919dbd /test/CodeGen/union.c | |
parent | d3bf3c0287a057eafe4b5d5588ebbb29f40ab6e1 (diff) |
Retry r126357. Use CharUnits for the Size and DataSize calculations when
they are known to be exact multiples of the width of the char type. Add a
test case to CodeGen/union.c that would have caught the problem with the
previous attempt. No change in functionality intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/union.c')
-rw-r--r-- | test/CodeGen/union.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CodeGen/union.c b/test/CodeGen/union.c index 1883ca639b..5c89e2d72a 100644 --- a/test/CodeGen/union.c +++ b/test/CodeGen/union.c @@ -42,3 +42,5 @@ int RRF(void) {return RRU.a;} // PR6164 typedef union T0 { unsigned int : 0; } T0; T0 t0; + +union { int large_bitfield: 31; char c } u2; |