blob: e791784e509765029f1916ac89cdbaabddcb405a [file] [log] [blame]
Reid Spencer1bb52e02007-02-09 15:15:21 +00001// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
2// RUN: llvm-dis | grep '@nate.*internal global i32 0'
Chris Lattner4d945172006-03-04 00:47:12 +00003
4struct X { int *XX; int Y;};
5
6void foo() {
7 static int nate = 0;
8 struct X bob = { &nate, 14 };
9 bar(&bob);
10}
11