New testcase for PR143
authorChris Lattner <sabre@nondot.org>
Thu, 20 Nov 2003 20:57:33 +0000 (20:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 20 Nov 2003 20:57:33 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10120 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2003-11-20-UnionBitfield.c [new file with mode: 0644]

diff --git a/test/CFrontend/2003-11-20-UnionBitfield.c b/test/CFrontend/2003-11-20-UnionBitfield.c
new file mode 100644 (file)
index 0000000..1bbf26f
--- /dev/null
@@ -0,0 +1,10 @@
+struct printf_spec {
+  unsigned int minus_flag:1;
+  char converter;
+};
+
+void parse_doprnt_spec () {
+  struct printf_spec spec;
+  spec.minus_flag = 1;
+}
+