xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2002-05-23-StaticValues.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2 
3 /* Make sure the frontend is correctly marking static stuff as internal! */
4 
5 int X;
6 static int Y = 12;
7 
foo(int Z)8 static void foo(int Z) {
9   Y = Z;
10 }
11 
test()12 void *test() {
13   foo(12);
14   return &Y;
15 }
16