[flang] Fix crash in HLFIR generation (#118399)
[llvm-project.git] / clang / test / CodeGen / 2006-03-03-MissingInitializer.c
blobe1085f4b94f5769ccd16ecad7357113ab69b9122
1 // RUN: %clang_cc1 %s -emit-llvm -std=c89 -o - | FileCheck %s
3 struct X { int *XX; int Y;};
5 void foo(void) {
6 // CHECK: @foo.nate = internal global i32 0
7 static int nate = 0;
8 struct X bob = { &nate, 14 };
9 bar(&bob);