Text file
src/cmd/go/testdata/script/install_msan_and_race_and_asan_require_cgo.txt
1 # Tests Issue #21895
2
3 env CGO_ENABLED=0
4
5 [GOOS:darwin] [!short] [race] go build -race triv.go
6
7 [!GOOS:darwin] [race] ! go install -race triv.go
8 [!GOOS:darwin] [race] stderr '-race requires cgo'
9 [!GOOS:darwin] [race] ! stderr '-msan'
10
11 [msan] ! go install -msan triv.go
12 [msan] stderr '-msan requires cgo'
13 [msan] ! stderr '-race'
14
15 [asan] ! go install -asan triv.go
16 [asan] stderr '(-asan: the version of $(go env CC) could not be parsed)|(-asan: C compiler is not gcc or clang)|(-asan is not supported with [A-Za-z]+ compiler (\d+)\.(\d+))|(-asan requires cgo)'
17 [asan] ! stderr '-msan'
18
19 -- triv.go --
20 package main
21
22 func main() {}
23
View as plain text