aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/bitfield-init.c
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-05-06 19:57:59 +0000
committerDevang Patel <dpatel@apple.com>2008-05-06 19:57:59 +0000
commitd8ecd3c8f7716124e1efb278a46b6747c697668d (patch)
tree2c0e2ca9ebb29a110982cc2b5e28f46a616606fe /test/CodeGen/bitfield-init.c
parentfbfe82527dadb09c95609a742744d75a2322850c (diff)
Fix PR2101 - Codegen crash during bitfield initialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/bitfield-init.c')
-rw-r--r--test/CodeGen/bitfield-init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/bitfield-init.c b/test/CodeGen/bitfield-init.c
new file mode 100644
index 0000000000..6e89e1185a
--- /dev/null
+++ b/test/CodeGen/bitfield-init.c
@@ -0,0 +1,4 @@
+// RUN: clang %s -emit-llvm
+typedef struct { unsigned int i: 1; } c;
+const c d = { 1 };
+