aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-7d.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/lto-7d.c')
-rw-r--r--ld/testsuite/ld-plugin/lto-7d.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/lto-7d.c b/ld/testsuite/ld-plugin/lto-7d.c
new file mode 100644
index 0000000..7fc1ff1
--- /dev/null
+++ b/ld/testsuite/ld-plugin/lto-7d.c
@@ -0,0 +1,11 @@
+#include <stdlib.h>
+
+extern int foo;
+int foo2 = 2;
+
+void
+bar (void)
+{
+ if (foo != 30)
+ abort ();
+}