]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/lto-dead_strip-some-hidden/bar.c
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / lto-dead_strip-some-hidden / bar.c
1
2 int data[] = { 4, 5, 6 };
3 int deaddata[] = { 7, 8, 9 };
4
5 int func() { return 0; }
6 int deadfunc() { return 0; }
7
8 __attribute__((visibility("default")))
9 int* foo()
10 {
11 return data;
12 }
13
14 __attribute__((visibility("default")))
15 void* foo2()
16 {
17 return func;
18 }
19