go/misc/cgo/errors/testdata
Ian Lance Taylor 9d669ed47a misc/cgo/errors: use expected column numbers
The test was using the wrong column numbers, and was erroneously
passing because there happened to be line numbers that matched those
column numbers. Change the test harness to require the expected line
number for the ERROR HERE regexp case, so that this doesn't happen again.

Also rename a couple of variables in the test to avoid useless
redeclaration errors.

Fixes #46534

Change-Id: I2fcbf5e379c346de5346035c73d174a3980c0927
Reviewed-on: https://go-review.googlesource.com/c/go/+/324970
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2021-06-05 04:40:03 +00:00
..
err1.go misc/cgo/errors: consolidate test work 2019-05-21 18:15:05 +00:00
err2.go misc/cgo/errors: use expected column numbers 2021-06-05 04:40:03 +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