[llvm-commits] CVS: llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c

Chris Lattner lattner at cs.uiuc.edu
Thu Oct 9 23:06:01 PDT 2003


Changes in directory llvm/test/Regression/CFrontend:

2003-10-09-UnionInitializerBug.c added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:  (+15 -0)

Index: llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c
diff -c /dev/null llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c:1.1
*** /dev/null	Thu Oct  9 23:05:39 2003
--- llvm/test/Regression/CFrontend/2003-10-09-UnionInitializerBug.c	Thu Oct  9 23:05:29 2003
***************
*** 0 ****
--- 1,15 ----
+ struct Foo {
+     unsigned a;
+     unsigned b;
+     unsigned c;
+ };
+ 
+ struct Bar {
+     union {
+         void **a;
+         struct Foo b;
+     }u;
+ };
+ 
+ struct Bar test = {0};
+ 





More information about the llvm-commits mailing list