2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
|
2009-11-21 01:23:39 +08:00
|
|
|
// CHECK: ModuleID
|
|
|
|
// CHECK-NOT: zeroinitializer
|
|
|
|
// CHECK: define i8* @f
|
2009-01-04 10:08:04 +08:00
|
|
|
|
|
|
|
struct s {
|
|
|
|
int a;
|
|
|
|
};
|
|
|
|
|
|
|
|
static void *v;
|
|
|
|
|
|
|
|
static struct s a;
|
|
|
|
|
|
|
|
static struct s a = {
|
|
|
|
10
|
|
|
|
};
|
|
|
|
|
|
|
|
void *f()
|
|
|
|
{
|
|
|
|
if (a.a)
|
|
|
|
return v;
|
|
|
|
}
|