fix garble with newer Go tip versions

Some big changes landed in Go for the upcoming 1.20.

While here, remove the use of GOGC=off with make.bash,
as https://go.dev/cl/436235 makes that unnecessary now.
This commit is contained in:
Daniel Martí
2022-11-01 16:48:15 +00:00
parent ff521782f1
commit e61317e7ae
4 changed files with 20 additions and 7 deletions

View File

@@ -30,7 +30,8 @@ cp stderr build-error.stderr
stdin build-error.stderr
garble reverse ./build-error
cmp stdout build-error-reverse.stdout
[!go1.20] cmp stdout build-error-reverse.stdout-go1.19
[go1.20] cmp stdout build-error-reverse.stdout-go1.20
[short] stop # no need to verify this with -short
@@ -158,8 +159,13 @@ main.main(...)
test/main/long_main.go:11 +0x??
main filename: test/main/long_main.go
-- build-error-reverse.stdout --
-- build-error-reverse.stdout-go1.19 --
# test/main/build-error
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
exit status 2
exit status 2
-- build-error-reverse.stdout-go1.20 --
go build test/main/build-error: # test/main/build-error
test/main/build-error/error.go:18: cannot convert UnobfuscatedStruct{} (value of type UnobfuscatedStruct) to type struct{SomeField int}
exit status 2
exit status 1