summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/pr12942a.h
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-plugin/pr12942a.h')
-rw-r--r--ld/testsuite/ld-plugin/pr12942a.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-plugin/pr12942a.h b/ld/testsuite/ld-plugin/pr12942a.h
new file mode 100644
index 0000000..760929b
--- /dev/null
+++ b/ld/testsuite/ld-plugin/pr12942a.h
@@ -0,0 +1,12 @@
+extern void link_error ();
+
+inline int test (void)
+{
+ int exp = -1;
+ if ((exp < 2 ? 2U : (unsigned int) exp) != 2)
+ link_error ();
+
+ return 0;
+}
+
+typedef int (*test_t) (void);