diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-05 18:03:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-05 18:03:30 +0000 |
commit | 2bc00252d7597af32c84599076e4d14e678aaa8a (patch) | |
tree | 52caf682905e14587ccdcd13c7e7ebf8f38e4ffb /test/CodeGen/struct-init.c | |
parent | 1880666c13b909f858ddec9c2a7784c5a0c04041 (diff) |
fix PR7564 a cast where the bitfield struct init code
wasn't handling array padding elements right.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct-init.c')
-rw-r--r-- | test/CodeGen/struct-init.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/struct-init.c b/test/CodeGen/struct-init.c index 88b57a2647..926e5a7f5d 100644 --- a/test/CodeGen/struct-init.c +++ b/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}; |