From 83bb2565c68713e195765edc3c3b56766db4b6e7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 10 Oct 2003 04:05:29 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8997 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2003-10-09-UnionInitializerBug.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/CFrontend/2003-10-09-UnionInitializerBug.c diff --git a/test/CFrontend/2003-10-09-UnionInitializerBug.c b/test/CFrontend/2003-10-09-UnionInitializerBug.c new file mode 100644 index 00000000000..e574a1931d3 --- /dev/null +++ b/test/CFrontend/2003-10-09-UnionInitializerBug.c @@ -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}; +