]> git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/profile/instrprof-visibility-kinds.inc
New upstream version 1.12.0+dfsg1
[rustc.git] / src / compiler-rt / test / profile / instrprof-visibility-kinds.inc
1 void f1() {}
2
3 #ifndef NO_WEAK
4 void f2() __attribute__((weak));
5 void f2() {}
6 #endif
7
8 void f3() __attribute__((always_inline));
9 void f3() {}
10
11 #ifndef NO_EXTERN
12 extern void f4();
13 #endif
14
15 void f5() __attribute__((visibility("default")));
16 void f5() {}
17
18 void f6() __attribute__((visibility("hidden")));
19 void f6() {}
20
21 void f7() __attribute__((visibility("internal")));
22 void f7() {}
23
24 void 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 }