24 lines · c
1// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s2// CHECK: ModuleID3// CHECK-NOT: zeroinitializer4// CHECK-LABEL: define {{.*}}ptr @f5 6struct s {7 int a;8};9 10static void *v;11 12static struct s a;13 14static struct s a = {15 1016};17 18void *f(void)19{20 if (a.a)21 return v;22 return 0;23}24