Fix the clang-wpa example.
[clang.git] / test / CodeGen / static-order.c
blobe7f9814261ccccea23233113ba3ca8b5f2469a29
1 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2 // CHECK: ModuleID
3 // CHECK-NOT: zeroinitializer
4 // CHECK: define i8* @f
6 struct s {
7 int a;
8 };
10 static void *v;
12 static struct s a;
14 static struct s a = {
18 void *f()
20 if (a.a)
21 return v;