aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-x86-64/pr22001-1c.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr22001-1c.c')
-rw-r--r--ld/testsuite/ld-x86-64/pr22001-1c.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr22001-1c.c b/ld/testsuite/ld-x86-64/pr22001-1c.c
new file mode 100644
index 0000000..8fd925c
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr22001-1c.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+
+extern int copy;
+extern int* get_copy_p (void);
+
+int main()
+{
+ if (&copy == get_copy_p ())
+ printf ("PASS\n");
+
+ return 0;
+}