]> git.saurik.com Git - apple/dyld.git/blame_incremental - unit-tests/test-cases/weak-external-reloc-flat/foo.c
dyld-353.2.1.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-external-reloc-flat / foo.c
... / ...
CommitLineData
1
2
3extern int bar_getfrob(int x);
4
5
6int __attribute__((weak)) foo[] = { 1, 2, 3, 4 };
7int __attribute__((weak)) bar[] = { 10, 11, 12, 13 };
8int __attribute__((weak)) frob[] = { 20, 21, 22, 23 };
9
10int* pfoo = &foo[2];
11
12int getfrob() {
13 return bar_getfrob(2);
14}