New testcase, make sure nate doesn't vanish

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-03-04 00:47:12 +00:00
parent f0afc2cda2
commit 4d94517796

View 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);
}