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); + } + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits