New testcase, make sure nate doesn't vanish
[oota-llvm.git] / test / CFrontend / 2006-03-03-MissingInitializer.c
1 // RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep nate | grep 'global int 0'
2
3 struct X { int *XX; int Y;};
4
5 void foo() {
6   static int nate = 0;
7   struct X bob = { &nate, 14 };
8   bar(&bob);
9 }
10