]>
git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/lto-r/foo.c
1 static int var_static
= 3;
3 __attribute__((visibility("hidden")))
9 __attribute__((visibility("hidden"), weak
))
10 int var_weak_hidden
= 4;
13 int var_weak_global
= 5;
18 static int* foo_static() { return &var_static
; }
20 __attribute__((visibility("hidden")))
21 int* foo_hidden() { return &var_hidden
; }
24 int* foo_global() { return &var_global
; }
27 __attribute__((visibility("hidden"),weak
))
28 int* foo_weak_hidden() { return &var_weak_hidden
; }
32 int* foo_weak_global() { return &var_weak_global
; }
35 __attribute__((visibility("hidden")))
36 void* keep
[] = { &foo_static
};