summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-gc/pr13683.d
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-gc/pr13683.d')
-rw-r--r--ld/testsuite/ld-gc/pr13683.d12
1 files changed, 12 insertions, 0 deletions
diff --git a/ld/testsuite/ld-gc/pr13683.d b/ld/testsuite/ld-gc/pr13683.d
new file mode 100644
index 0000000..b38b9d1
--- /dev/null
+++ b/ld/testsuite/ld-gc/pr13683.d
@@ -0,0 +1,12 @@
+#name: --gc-sections with --defsym
+#source: dummy.s
+#ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
+#nm: --format=bsd
+#xfail: sh64*-*-* iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
+
+# Note - look for both "foo" and "foo2" being defined, non-zero function symbols
+
+#...
+0*[1-9a-f]+[0-9a-f]*[ ](T|D)[ ]_*foo
+0*[1-9a-f]+[0-9a-f]*[ ](T|D)[ ]_*foo2
+#...