]> git.saurik.com Git - apple/ld64.git/blame - ld64-134.9/unit-tests/test-cases/static-executable-weak-defines/test.c
ld64-134.9.tar.gz
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / static-executable-weak-defines / test.c
CommitLineData
b1f7435d
A
1
2
3
4__attribute__((weak)) int foo()
5{
6 return 0;
7}
8
9
10int entry()
11{
12 return foo();
13}
14
15// pointer to weak function might trigger external relocation
16void* pfoo = &foo;