blob: b8c25b73c71ff7e7b0f75829629084fe78729f4b [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3/* Make sure the frontend is correctly marking static stuff as internal! */
4
5int X;
6static int Y = 12;
7
8static void foo(int Z) {
9 Y = Z;
10}
11
12void *test() {
13 foo(12);
14 return &Y;
15}