summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorKen Dyck <kd@kendyck.com>2011-02-28 02:01:38 +0000
committerKen Dyck <kd@kendyck.com>2011-02-28 02:01:38 +0000
commit1b4420ed42e5185cf9590197095ea82a5edbbd28 (patch)
tree50bb14fc09a0ad1d40955e6e9321f48863de59ae /clang/test/CodeGen
parent4b45f6628edfde2a5c14376a7ffc3cc88502073a (diff)
downloadbcm5719-llvm-1b4420ed42e5185cf9590197095ea82a5edbbd28.tar.gz
bcm5719-llvm-1b4420ed42e5185cf9590197095ea82a5edbbd28.zip
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. llvm-svn: 126628
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/union.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/CodeGen/union.c b/clang/test/CodeGen/union.c
index 1883ca639b7..5c89e2d72a7 100644
--- a/clang/test/CodeGen/union.c
+++ b/clang/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;
OpenPOWER on IntegriCloud