]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] test: add scaffolding to run.go to check compiler with -G flag
authorRobert Griesemer <gri@golang.org>
Tue, 1 Dec 2020 05:38:49 +0000 (21:38 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 1 Dec 2020 21:49:31 +0000 (21:49 +0000)
commit72ad2f44eaf8bb71ea100fd4acf7dd04384c7175
tree40bb3522f5dcd398280bea526b44921f7b9e572d
parent87bc85a846d5dc2d8fe7dbda900d6066ab98f1a5
[dev.typeparams] test: add scaffolding to run.go to check compiler with -G flag

Added a new flag -G to run. Setting -G (as in: go run run.go -G)
will run tests marked with "errorcheck" (and no other flags) also
with the compiler using the new typechecker.

Many tests don't pass yet (due to discrepancies in error messages).
The top-level tests in the test directory which don't pass yet have
been explicitly excluded, permitting to see the current status.
Future CLs will bring error messages in sync and eventually all
tests should pass.

Change-Id: I7caf5eff413e173f68d092af4bbe458434718d74
Reviewed-on: https://go-review.googlesource.com/c/go/+/274313
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/noder.go
test/alias2.go
test/append1.go
test/assign.go
test/blank1.go
test/cannotassign.go
test/cmp6.go
test/const1.go
test/const2.go
test/convert2.go
test/run.go