commit | b03d9afa3f0522ca02139c9b55d1145369e32a0f | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu May 07 23:42:42 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu May 07 23:42:42 2009 +0000 |
tree | 2425afa19a7860fe207b36f3a1ac7c845f8a0dba | |
parent | ec3153360625b9c24e12d1b10668815271703a6e [diff] [blame] |
Fix crash with constant initialization of bit-fields in unions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71194 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/bitfield-init.c b/test/CodeGen/bitfield-init.c index f0cc0b1..7459614 100644 --- a/test/CodeGen/bitfield-init.c +++ b/test/CodeGen/bitfield-init.c
@@ -10,3 +10,5 @@ struct Token one = { 1 }; } +typedef union T0 { char field0 : 2; } T0; +T0 T0_values = { 0 };