go/misc/cgo/errors/testdata
Matthew Dempsky 804ecc2581 [dev.typeparams] all: add GOEXPERIMENT=unified knob
Setting `-gcflags=all=-d=unified` works for normal builds/tests, but
seems to have trouble with the test/run.go regress tests. So add a
GOEXPERIMENT knob to allow another way to turn on unified IR
construction, which plays better with all.bash.

While here, update two existing test expectations that currently fail
during GOEXPERIMENT=unified ./all.bash:

1. misc/cgo/errors/testdata/err2.go is testing column positions, and
types2 gets one case slightly better, and another case slightly
worse. For now, the test case is updated to accept both.

2. fixedbugs/issue42284.go is added to the list of known failures,
because it fails for unified IR. (It's an escape analysis test, and
escape analysis is working as expected; but unified is formatting an
imported constant value differently than the test's regexp expects.)

Updates #46786.

Change-Id: I40a4a70fa1b85ac87fcc85a43687f5d81e011ec0
Reviewed-on: https://go-review.googlesource.com/c/go/+/328215
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
2021-06-17 09:09:02 +00:00
..
err1.go misc/cgo/errors: consolidate test work 2019-05-21 18:15:05 +00:00
err2.go [dev.typeparams] all: add GOEXPERIMENT=unified knob 2021-06-17 09:09:02 +00:00
err4.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue11097a.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue11097b.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue14669.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue18452.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue18889.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue28069.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue28721.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
issue33061.go cmd/cgo: do not rewrite call if there are more args than parameters 2019-07-12 17:31:29 +00:00
issue42580.go cmd/cgo: pass end position info for C function arguments. 2021-04-05 19:29:17 +00:00
long_double_size.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00
malloc.go misc/cgo/errors: fix tests in module mode 2019-02-22 17:24:25 +00:00