]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/llvm-integration/a8.c
ld64-95.2.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / llvm-integration / a8.c
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 }