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