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