diff options
| author | Ian Lance Taylor <iant@golang.org> | 2018-12-03 10:53:10 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-12-03 20:26:04 +0000 |
| commit | 54cbc5b4bf554742b7037308bd45da010340628d (patch) | |
| tree | a67458f9eb2edc4ae0cebe0bb3b3fa156fdbb052 /misc/cgo/errors/errors_test.go | |
| parent | f98081e51585ebb6c321ee2145b1e38312759ea3 (diff) | |
| download | go-54cbc5b4bf554742b7037308bd45da010340628d.tar.xz | |
cmd/cgo: use a plausible position for typedef error messages
Fixes #28069
Change-Id: I7e0f96b8b6d123de283325fcb78ec76455050f6d
Reviewed-on: https://go-review.googlesource.com/c/152158
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'misc/cgo/errors/errors_test.go')
| -rw-r--r-- | misc/cgo/errors/errors_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/misc/cgo/errors/errors_test.go b/misc/cgo/errors/errors_test.go index 118187f23b..0d7ca4cf9d 100644 --- a/misc/cgo/errors/errors_test.go +++ b/misc/cgo/errors/errors_test.go @@ -126,7 +126,12 @@ func TestReportsTypeErrors(t *testing.T) { } if sizeofLongDouble(t) > 8 { - check(t, "err4.go") + for _, file := range []string{ + "err4.go", + "issue28069.go", + } { + check(t, file) + } } } |
