New testcase, for PR 115
[oota-llvm.git] / test / CFrontend / 2002-05-23-StaticValues.c
1 /* Make sure the frontend is correctly marking static stuff as internal! */
2
3 int X;
4 static int Y = 12;
5
6 static void foo(int Z) {
7   Y = Z;
8 }
9
10 void *test() {
11         foo(12);
12         return &Y;
13 }