summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGen/bitfield-init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CodeGen/bitfield-init.c b/clang/test/CodeGen/bitfield-init.c
new file mode 100644
index 00000000000..6e89e1185a4
--- /dev/null
+++ b/clang/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 };
+
OpenPOWER on IntegriCloud