summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/struct-init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-07-05 18:03:30 +0000
committerChris Lattner <sabre@nondot.org>2010-07-05 18:03:30 +0000
commit53b479ff6aba444100a9fd0c7c251e53a781efd1 (patch)
treecb56e012ace27fd25411f4a92664e76f6a933b01 /clang/test/CodeGen/struct-init.c
parent9a3459f1a6aea8dc491fb1ade33633ff6b4db8d3 (diff)
downloadbcm5719-llvm-53b479ff6aba444100a9fd0c7c251e53a781efd1.tar.gz
bcm5719-llvm-53b479ff6aba444100a9fd0c7c251e53a781efd1.zip
fix PR7564 a cast where the bitfield struct init code
wasn't handling array padding elements right. llvm-svn: 107621
Diffstat (limited to 'clang/test/CodeGen/struct-init.c')
-rw-r--r--clang/test/CodeGen/struct-init.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/struct-init.c b/clang/test/CodeGen/struct-init.c
index 88b57a26478..926e5a7f5dd 100644
--- a/clang/test/CodeGen/struct-init.c
+++ b/clang/test/CodeGen/struct-init.c
@@ -10,3 +10,11 @@ char a;
const zend_ini_entry ini_entries[] = {
{ ((char*)&((zend_ini_entry*)0)->mh_arg1 - (char*)(void*)0)},
};
+
+// PR7564
+struct GLGENH {
+ int : 27;
+ int EMHJAA : 1;
+};
+
+struct GLGENH ABHFBF = {1};
OpenPOWER on IntegriCloud