aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/lto-20b.c')
-rw-r--r--ld/testsuite/ld-plugin/lto-20b.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/lto-20b.c b/ld/testsuite/ld-plugin/lto-20b.c
new file mode 100644
index 0000000..ba123cb
--- /dev/null
+++ b/ld/testsuite/ld-plugin/lto-20b.c
@@ -0,0 +1,11 @@
+extern int printf (const char *, ...);
+int foo ()
+{
+#ifdef SHARED
+ printf ("PASS\n");
+ return 0;
+#else
+ printf ("FAIL\n");
+ return 1;
+#endif
+}