]> git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/test-cases/llvm-integration/a9.c
da2c8fafd06fd5623c0658e3d6841995c7f9813e
[apple/ld64.git] / ld64-134.9 / 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 }