[llvm-commits] CVS: llvm/test/Regression/CFrontend/2006-03-03-MissingInitializer.c
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 3 16:47:25 PST 2006
Changes in directory llvm/test/Regression/CFrontend:
2006-03-03-MissingInitializer.c added (r1.1)
---
Log message:
New testcase, make sure nate doesn't vanish
---
Diffs of the changes: (+10 -0)
2006-03-03-MissingInitializer.c | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/test/Regression/CFrontend/2006-03-03-MissingInitializer.c
diff -c /dev/null llvm/test/Regression/CFrontend/2006-03-03-MissingInitializer.c:1.1
*** /dev/null Fri Mar 3 18:47:22 2006
--- llvm/test/Regression/CFrontend/2006-03-03-MissingInitializer.c Fri Mar 3 18:47:12 2006
***************
*** 0 ****
--- 1,10 ----
+ // RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep nate | grep 'global int 0'
+
+ struct X { int *XX; int Y;};
+
+ void foo() {
+ static int nate = 0;
+ struct X bob = { &nate, 14 };
+ bar(&bob);
+ }
+
More information about the llvm-commits
mailing list