blob: a5753b95f16eb78127d55aa7259c5ac4f0f46f06 [file] [log] [blame]
Dan Gohman2d65d352009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
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}