aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/bitfield-init.c
diff options
context:
space:
mode:
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 };
+