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