blob: e226179768caf96d0544cdaa1177b146bdefa4ed [file] [log] [blame]
Devang Patel2ecd9012007-10-26 17:50:58 +00001// RUN: clang -emit-llvm %s
2
Oliver Hunt253e0a72007-12-02 00:11:25 +00003struct AStruct {
4 int i;
5 char *s;
6 double d;
7};
8
Devang Patel2ecd9012007-10-26 17:50:58 +00009void f() {
10 static int i = 42;
Oliver Hunt253e0a72007-12-02 00:11:25 +000011 static int is[] = { 1, 2, 3, 4 };
12 static char* str = "forty-two";
13 static char* strs[] = { "one", "two", "three", "four" };
14 static struct AStruct myStruct = { 1, "two", 3.0 };
Devang Patel2ecd9012007-10-26 17:50:58 +000015}