aboutsummaryrefslogtreecommitdiffstats
path: root/test/CFrontend/2006-03-03-MissingInitializer.c
blob: 5a2acb588c03381f9a9418f4a6fecae2627913d0 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep nate | grep 'global i32 0'

struct X { int *XX; int Y;};

void foo() {
  static int nate = 0;
  struct X bob = { &nate, 14 };
  bar(&bob);
}