1 // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
2 // RUN: grep "g.b = internal global i8. getelementptr" %t
12 static int is
[] = { 1, 2, 3, 4 };
13 static char* str
= "forty-two";
14 static char* strs
[] = { "one", "two", "three", "four" };
15 static struct AStruct myStruct
= { 1, "two", 3.0 };
23 struct s
{ void *p
; };
26 static struct s var
= {((void*)&((char*)0)[0])};
29 // RUN: grep "f1.l0 = internal global i32 ptrtoint (i32 ()\* @f1 to i32)" %t
30 int f1(void) { static int l0
= (unsigned) f1
; }