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