1
0
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:
Chris Lattner 2006-03-04 00:47:12 +00:00
parent 4f01eca6ad
commit e10b6e1ec0

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