summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/endprotected.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elf/endprotected.c')
-rw-r--r--ld/testsuite/ld-elf/endprotected.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/endprotected.c b/ld/testsuite/ld-elf/endprotected.c
new file mode 100644
index 000000000000..b6b39ea92ad9
--- /dev/null
+++ b/ld/testsuite/ld-elf/endprotected.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+__attribute__ ((visibility ("protected")))
+void
+foo ()
+{
+ printf ("TEST1\n");
+}