mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
New testcase, make sure nate doesn't vanish
llvm-svn: 26511
This commit is contained in:
parent
4f01eca6ad
commit
e10b6e1ec0
10
test/Regression/CFrontend/2006-03-03-MissingInitializer.c
Normal file
10
test/Regression/CFrontend/2006-03-03-MissingInitializer.c
Normal file
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user