summaryrefslogtreecommitdiff
path: root/gold/testsuite/exclude_libs_test_2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gold/testsuite/exclude_libs_test_2.c')
-rw-r--r--gold/testsuite/exclude_libs_test_2.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gold/testsuite/exclude_libs_test_2.c b/gold/testsuite/exclude_libs_test_2.c
new file mode 100644
index 00000000000..a8952e7a6b3
--- /dev/null
+++ b/gold/testsuite/exclude_libs_test_2.c
@@ -0,0 +1,24 @@
+void lib2_default (void);
+void lib2_hidden (void);
+void lib2_internal (void);
+void lib2_protected (void);
+
+void __attribute__((visibility ("default")))
+lib2_default (void)
+{
+}
+
+void __attribute__((visibility ("hidden")))
+lib2_hidden (void)
+{
+}
+
+void __attribute__((visibility ("internal")))
+lib2_internal (void)
+{
+}
+
+void __attribute__((visibility ("protected")))
+lib2_protected (void)
+{
+}