opnsense-src/test/CodeGen/PR3613-static-decl.c

17 lines
270 B
C
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o %t %s
2009-10-14 14:03:49 -04:00
// RUN: grep '@g0 = internal global %.truct.s0 { i32 3 }' %t | count 1
2009-06-02 13:58:47 -04:00
struct s0 {
int a;
};
static struct s0 g0;
static int f0(void) {
return g0.a;
}
static struct s0 g0 = {3};
void *g1 = f0;