diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:13:19 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-14 19:13:19 +0000 |
commit | b1652b2ba2dd7265093779bf0c7018591d25a11c (patch) | |
tree | 0f99a074c2c7f440b6617489d9cc2bf78eec863f /src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt | |
parent | Adding upstream version 1.21.9. (diff) | |
download | golang-1.21-b1652b2ba2dd7265093779bf0c7018591d25a11c.tar.xz golang-1.21-b1652b2ba2dd7265093779bf0c7018591d25a11c.zip |
Adding upstream version 1.21.10.upstream/1.21.10
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt')
-rw-r--r-- | src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt | 17 |
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 |