aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/func1p.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/func1p.c')
-rw-r--r--ld/testsuite/ld-plugin/func1p.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/func1p.c b/ld/testsuite/ld-plugin/func1p.c
new file mode 100644
index 0000000..917dcbb
--- /dev/null
+++ b/ld/testsuite/ld-plugin/func1p.c
@@ -0,0 +1,8 @@
+extern int retval;
+
+int
+__attribute__ ((visibility ("protected")))
+func1 (void)
+{
+ return retval;
+}