blob: bf583e203d35c79d03cef2e05356d7701ba9bb62 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -f -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}