]>
git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/llvm-integration/a8.c
Commit | Line | Data |
a61fdf0a A |
1 | |
2 | static signed int i = 0; |
3 | extern int foo1(void); |
4 | extern void foo2(void); |
5 | |
6 | void foo2(void) { |
7 | |
8 | i = -1; |
9 | |
10 | } |
11 | |
12 | static int foo3() { |
13 | return 10; |
14 | } |
15 | |
16 | int foo1(void) |
17 | { |
18 | int data = 0; |
19 | if (i < 0) |
20 | data = foo3(); |
21 | data += 42; |
22 | return data; |
23 | } |