New testcase
authorChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 04:05:29 +0000 (04:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 10 Oct 2003 04:05:29 +0000 (04:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8997 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2003-10-09-UnionInitializerBug.c [new file with mode: 0644]

diff --git a/test/CFrontend/2003-10-09-UnionInitializerBug.c b/test/CFrontend/2003-10-09-UnionInitializerBug.c
new file mode 100644 (file)
index 0000000..e574a19
--- /dev/null
@@ -0,0 +1,15 @@
+struct Foo {
+    unsigned a;
+    unsigned b;
+    unsigned c;
+};
+
+struct Bar {
+    union {
+        void **a;
+        struct Foo b;
+    }u;
+};
+
+struct Bar test = {0};
+