2009-12-15 18:09:07 +00:00
|
|
|
// RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
|
2009-06-02 17:52:33 +00:00
|
|
|
// RUN: llvm-dis | grep {@nate.*internal global i32 0}
|
|
|
|
|
|
|
|
struct X { int *XX; int Y;};
|
|
|
|
|
|
|
|
void foo() {
|
|
|
|
static int nate = 0;
|
|
|
|
struct X bob = { &nate, 14 };
|
|
|
|
bar(&bob);
|
|
|
|
}
|
|
|
|
|