commit | 7bfec50f74144dff0f022067953bfb3c6ecbd7ec | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Oct 10 04:05:29 2003 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Oct 10 04:05:29 2003 +0000 |
tree | 8ac4876f3a75d8e4ef187a59204db67c2c9cc24b | |
parent | 6f8cd63693d663fee83085706d0c89f62446def3 [diff] [blame] |
New testcase llvm-svn: 8997
diff --git a/llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c b/llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c new file mode 100644 index 0000000..e574a19 --- /dev/null +++ b/llvm/test/Regression/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}; +