blob: 19d4bc7fe7a84e24e340a89d4dd39e30196b818c [file] [log] [blame]
Dan Gohman8a3f6442009-12-05 00:02:37 +00001// RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
Reid Spencerdcb925e2007-04-15 20:08:37 +00002// 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