blob: 58aabbebd57ee0b9bdab996c622b3c58ec87d802 [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
Daniel Dunbar9c7efbb2009-11-20 17:23:39 +00002// CHECK: ModuleID
3// CHECK-NOT: zeroinitializer
Stephen Lin43622612013-08-15 06:47:53 +00004// CHECK-LABEL: define i8* @f
Anders Carlsson762e1622009-01-04 02:08:04 +00005
6struct s {
7 int a;
8};
9
10static void *v;
11
12static struct s a;
13
14static struct s a = {
15 10
16};
17
18void *f()
19{
20 if (a.a)
21 return v;
22}