summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 19:14:02 +0000
commit9a6b5285ae7925465ef2e9829a83307b3d29ba57 (patch)
treefe6cefb242bcf00248800820635651946683a60f /src/cmd/go/testdata
parentAdding upstream version 1.22.2. (diff)
downloadgolang-1.22-9a6b5285ae7925465ef2e9829a83307b3d29ba57.tar.xz
golang-1.22-9a6b5285ae7925465ef2e9829a83307b3d29ba57.zip
Adding upstream version 1.22.3.upstream/1.22.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/go/testdata')
-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