Chris Lattner | 7e9ee75 | 2002-05-23 20:58:45 +0000 | [diff] [blame] | 1 | /* Make sure the frontend is correctly marking static stuff as internal! */ |
2 | |||||
3 | int X; | ||||
4 | static int Y = 12; | ||||
5 | |||||
6 | static void foo(int Z) { | ||||
7 | Y = Z; | ||||
8 | } | ||||
9 | |||||
10 | void *test() { | ||||
11 | foo(12); | ||||
12 | return &Y; | ||||
13 | } |