blob: a5753b95f16eb78127d55aa7259c5ac4f0f46f06 [file] [log] [blame]
Dan Gohmanfea1dd02009-08-25 15:38:29 +00001// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
Tanya Lattnere9af5d12004-11-06 22:41:00 +00002
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() {
Jeff Cohenb02fbfc2005-04-23 21:26:11 +000013 foo(12);
14 return &Y;
Chris Lattner7e9ee752002-05-23 20:58:45 +000015}