summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:03 +0000
commite9c64d7b331228dddf1b7c3d18c88a464896c6d1 (patch)
tree448abe42291439d1720df9769d0cfc266cc1ac7f /src/cmd/go/testdata/script
parentReleasing progress-linux version 1.22.2-2~progress7.99u1. (diff)
downloadgolang-1.22-e9c64d7b331228dddf1b7c3d18c88a464896c6d1.tar.xz
golang-1.22-e9c64d7b331228dddf1b7c3d18c88a464896c6d1.zip
Merging upstream version 1.22.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/go/testdata/script')
-rw-r--r--src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt b/src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt
new file mode 100644
index 0000000..d7acefd
--- /dev/null
+++ b/src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt
@@ -0,0 +1,17 @@
+[!GOOS:darwin] skip
+[!cgo] skip
+
+! go build
+stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
+
+-- go.mod --
+module ldflag
+
+-- main.go --
+package main
+
+// #cgo CFLAGS: -flto
+// #cgo LDFLAGS: -lto_library bad.dylib
+import "C"
+
+func main() {} \ No newline at end of file