]> Cypherpunks.ru repositories - gostls13.git/commit
test: re-enable a bunch of tests with types2
authorDan Scales <danscales@google.com>
Sat, 27 Nov 2021 18:33:59 +0000 (10:33 -0800)
committerDan Scales <danscales@google.com>
Fri, 3 Dec 2021 16:24:32 +0000 (16:24 +0000)
commit29483b3dae9bc043887b5372aefe0e53194b9ce7
treed9ab4285d5cb8878ea2902fb21f08a9abf9b2ee7
parent9b0de0854d5a5655890ef0b2b9052da2541182a3
test: re-enable a bunch of tests with types2

Enable a bunch of types2-related error tests to run successfully, so
they no longer have to be disabled in run.go.

 - directive.go: split it into directive.go and directive2.go, since the
   possible errors are now split across the parser and noder2, so they
   can't all be reported in one file.

 - linkname2.go: similarly, split it into linkname2.go and linkname3.go
   for the same reason.

 - issue16428.go, issue17645.go, issue47201.dir/bo.go: handle slightly
   different wording by types2

 - issue5609.go: handle slight different error (array length must be
   integer vs. array bound too large).

 - float_lit3.go: handle slightly different wording (overflows
   float vs cannot convert to float)

I purposely didn't try to fix tests yet where there are extra or missing
errors on different lines, since that is not easy to make work for both
-G=3 and -G=0. In a later change, will flip to make the types2 version
match correctly, vs. the -G=0 version.

Change-Id: I6079ff258e3b90146335b9995764e3b1b56cda59
Reviewed-on: https://go-review.googlesource.com/c/go/+/368455
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
13 files changed:
src/cmd/compile/internal/types2/stdlib_test.go
src/go/types/stdlib_test.go
test/directive.go
test/directive2.go [new file with mode: 0644]
test/fixedbugs/issue16428.go
test/fixedbugs/issue17645.go
test/fixedbugs/issue47201.dir/b.go
test/fixedbugs/issue5609.go
test/float_lit3.go
test/linkname2.go
test/linkname3.go [new file with mode: 0644]
test/run.go
test/shift1.go