]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/llvm-integration/a9.c
ld64-127.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / llvm-integration / a9.c
1
2 static signed int i = 0;
3 extern int foo1(void);
4 extern void foo2(void);
5 extern void foo4(void);
6
7 void foo2(void) {
8
9 i = -1;
10
11 }
12
13 static int foo3() {
14 foo4();
15 return 10;
16 }
17
18 int foo1(void)
19 {
20 int data = 0;
21 if (i < 0)
22 data = foo3();
23 data += 42;
24 return data;
25 }