mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
f0afc2cda2
commit
4d94517796
10
test/CFrontend/2006-03-03-MissingInitializer.c
Normal file
10
test/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