1void f1() {}
2
3#ifndef NO_WEAK
4void f2() __attribute__((weak));
5void f2() {}
6#endif
7
8void f3() __attribute__((always_inline));
9void f3() {}
10
11#ifndef NO_EXTERN
12extern void f4();
13#endif
14
15void f5() __attribute__((visibility("default")));
16void f5() {}
17
18void f6() __attribute__((visibility("hidden")));
19void f6() {}
20
21void f7() __attribute__((visibility("internal")));
22void f7() {}
23
24void call() {
25 f1();
26#ifndef NO_WEAK
27 f2();
28#endif
29 f3();
30#ifndef NO_EXTERN
31 f4();
32#endif
33 f5();
34 f6();
35 f7();
36}
37

source code of compiler-rt/test/profile/Posix/instrprof-visibility-kinds.inc