]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/coalesce_weak_def_in_dylib/main.c
afd696df2c2c80aa11eb57a92cfaba8b7de813ac
[apple/ld64.git] / unit-tests / test-cases / coalesce_weak_def_in_dylib / main.c
1
2 extern void foo();
3 extern void wfoo();
4
5 void* pfoo = &foo;
6 void* pwfoo = &wfoo;
7
8 int main (void)
9 {
10 if (pfoo != &foo)
11 return 1;
12 if (pwfoo != &wfoo)
13 return 1;
14
15 return 0;
16 }
17