blob: 79d46ae8ab0c6ee8f7e7075af578e33aea94fc84 [file] [log] [blame]
Tanya Lattnere9af5d12004-11-06 22:41:00 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
Chris Lattner7e9ee752002-05-23 20:58:45 +00003/* 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}