1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s 2*f4a2713aSLionel Sambuc // CHECK: ModuleID 3*f4a2713aSLionel Sambuc // CHECK-NOT: zeroinitializer 4*f4a2713aSLionel Sambuc // CHECK-LABEL: define i8* @f 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuc struct s { 7*f4a2713aSLionel Sambuc int a; 8*f4a2713aSLionel Sambuc }; 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuc static void *v; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc static struct s a; 13*f4a2713aSLionel Sambuc 14*f4a2713aSLionel Sambuc static struct s a = { 15*f4a2713aSLionel Sambuc 10 16*f4a2713aSLionel Sambuc }; 17*f4a2713aSLionel Sambuc f()18*f4a2713aSLionel Sambucvoid *f() 19*f4a2713aSLionel Sambuc { 20*f4a2713aSLionel Sambuc if (a.a) 21*f4a2713aSLionel Sambuc return v; 22*f4a2713aSLionel Sambuc } 23