aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/pr12942a.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/pr12942a.cc')
-rw-r--r--ld/testsuite/ld-plugin/pr12942a.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr12942a.cc b/ld/testsuite/ld-plugin/pr12942a.cc
new file mode 100644
index 0000000..1a18404
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr12942a.cc
@@ -0,0 +1,16 @@
+#include <stdio.h>
+#include "pr12942a.h"
+
+extern "C" void abort ();
+
+test_t b(void);
+
+int
+main(void)
+{
+ if (test != b ())
+ abort ();
+
+ printf ("OK\n");
+ return 0;
+}