summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/linkname.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/testdata/script/linkname.txt')
-rw-r--r--src/cmd/go/testdata/script/linkname.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/linkname.txt b/src/cmd/go/testdata/script/linkname.txt
new file mode 100644
index 0000000..1133659
--- /dev/null
+++ b/src/cmd/go/testdata/script/linkname.txt
@@ -0,0 +1,9 @@
+env GO111MODULE=off
+
+# check for linker name in error message about linker crash
+[!gc] skip
+! go build -ldflags=-crash_for_testing x.go
+stderr [\\/]tool[\\/].*[\\/]link
+
+-- x.go --
+package main; func main() {}