aboutsummaryrefslogtreecommitdiff
path: root/test/profile/instrprof-visibility-kinds.inc
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile/instrprof-visibility-kinds.inc')
-rw-r--r--test/profile/instrprof-visibility-kinds.inc36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/profile/instrprof-visibility-kinds.inc b/test/profile/instrprof-visibility-kinds.inc
new file mode 100644
index 000000000000..23b899dd8a3d
--- /dev/null
+++ b/test/profile/instrprof-visibility-kinds.inc
@@ -0,0 +1,36 @@
+void f1() {}
+
+#ifndef NO_WEAK
+void f2() __attribute__((weak));
+void f2() {}
+#endif
+
+void f3() __attribute__((always_inline));
+void f3() {}
+
+#ifndef NO_EXTERN
+extern void f4();
+#endif
+
+void f5() __attribute__((visibility("default")));
+void f5() {}
+
+void f6() __attribute__((visibility("hidden")));
+void f6() {}
+
+void f7() __attribute__((visibility("internal")));
+void f7() {}
+
+void call() {
+ f1();
+#ifndef NO_WEAK
+ f2();
+#endif
+ f3();
+#ifndef NO_EXTERN
+ f4();
+#endif
+ f5();
+ f6();
+ f7();
+}