opnsense-src/test/CodeGen/static-order.c

23 lines
262 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
2009-12-01 06:08:04 -05:00
// CHECK: ModuleID
// CHECK-NOT: zeroinitializer
// CHECK: define i8* @f
2009-06-02 13:58:47 -04:00
struct s {
int a;
};
static void *v;
static struct s a;
static struct s a = {
10
};
void *f()
{
if (a.a)
return v;
}