zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / FrontendC / 2006-03-03-MissingInitializer.c
blob19d4bc7fe7a84e24e340a89d4dd39e30196b818c
1 // RUN: %llvmgcc %s -S -o - | opt -std-compile-opts | \
2 // RUN: llvm-dis | grep {@nate.*internal global i32 0}
4 struct X { int *XX; int Y;};
6 void foo() {
7 static int nate = 0;
8 struct X bob = { &nate, 14 };
9 bar(&bob);