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