From 9a6b5285ae7925465ef2e9829a83307b3d29ba57 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 14 May 2024 21:14:02 +0200 Subject: Adding upstream version 1.22.3. Signed-off-by: Daniel Baumann --- .../go/testdata/script/darwin_lto_library_ldflag.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt (limited to 'src/cmd/go/testdata') 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 -- cgit v1.2.3