diff options
Diffstat (limited to 'test/CFrontend')
-rw-r--r-- | test/CFrontend/2006-03-03-MissingInitializer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2006-03-03-MissingInitializer.c b/test/CFrontend/2006-03-03-MissingInitializer.c new file mode 100644 index 0000000..f0e6bd7 --- /dev/null +++ b/test/CFrontend/2006-03-03-MissingInitializer.c @@ -0,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); +} + |