[llvm-commits] CVS: llvm/test/Regression/CFrontend/2003-11-27-UnionCtorInitialization.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 27 15:26:07 PST 2003
Changes in directory llvm/test/Regression/CFrontend:
2003-11-27-UnionCtorInitialization.c added (r1.1)
---
Log message:
New testcase for PR158
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/CFrontend/2003-11-27-UnionCtorInitialization.c
diff -c /dev/null llvm/test/Regression/CFrontend/2003-11-27-UnionCtorInitialization.c:1.1
*** /dev/null Thu Nov 27 15:25:17 2003
--- llvm/test/Regression/CFrontend/2003-11-27-UnionCtorInitialization.c Thu Nov 27 15:25:07 2003
***************
*** 0 ****
--- 1,14 ----
+ struct i387_soft_struct {
+ long cwd;
+ long twd;
+ long fip;
+ };
+ union i387_union {
+ struct i387_soft_struct soft;
+ };
+ struct thread_struct {
+ union i387_union i387;
+ };
+ void _init_task_union(void) {
+ struct thread_struct thread = (struct thread_struct) { {{0}} };
+ }
More information about the llvm-commits
mailing list