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