summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-14a.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/lto-14a.c')
-rw-r--r--ld/testsuite/ld-plugin/lto-14a.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/lto-14a.c b/ld/testsuite/ld-plugin/lto-14a.c
new file mode 100644
index 0000000000..d61437b1d1
--- /dev/null
+++ b/ld/testsuite/ld-plugin/lto-14a.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+extern void foo(void);
+extern int i;
+
+int main()
+{
+ foo();
+ if (i == 0x1234)
+ printf ("PASS\n");
+ return 0;
+}