1
0
mirror of https://github.com/golang/go synced 2024-11-17 10:14:46 -07:00
go/misc/cgo/errors
Hiroshi Ioka b88e532a9e cmd/cgo: use first error position instead of last one
Just like https://golang.org/cl/34783

Given cgo.go:
     1	package main
     2
     3	/*
     4	long double x = 0;
     5	*/
     6	import "C"
     7
     8	func main() {
     9		_ = C.x
    10		_ = C.x
    11	}

Before:
    ./cgo.go:10:6: unexpected: 16-byte float type - long double

After:
    ./cgo.go:9:6: unexpected: 16-byte float type - long double

The above test case is not portable. So it is tested on only amd64.

Change-Id: If0b84cf73d381a22e2ada71c8e9a6e6ec77ffd2e
Reviewed-on: https://go-review.googlesource.com/54950
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-08-14 05:29:11 +00:00
..
err1.go
err2.go
err3.go
err4.go cmd/cgo: use first error position instead of last one 2017-08-14 05:29:11 +00:00
issue7757.go
issue8442.go
issue11097a.go
issue11097b.go
issue13129.go
issue13423.go
issue13635.go
issue13830.go cmd/cgo: use function arg type for _cgoCheckPointerN function 2016-06-09 16:02:03 +00:00
issue14669.go cmd/cgo: remove -O options when generating compiler errors 2016-05-27 01:40:30 +00:00
issue16116.go cmd/cgo: error, not panic, if not enough arguments to function 2016-06-21 04:32:04 +00:00
issue16591.go cmd/cgo: always use a function literal for pointer checking 2016-10-19 21:20:50 +00:00
issue18452.go cmd/cgo: show pos info in undefined name errors 2017-06-03 16:08:49 +00:00
issue18889.go cmd/cgo: reject references to builtin functions other than calls 2017-04-18 22:14:43 +00:00
malloc.go misc/cgo/errors: fix malloc test for dragonfly 2016-10-25 20:11:50 +00:00
ptr.go misc/cgo/errors: update ptr.go comment 2017-08-08 04:31:40 +00:00
test.bash cmd/cgo: use first error position instead of last one 2017-08-14 05:29:11 +00:00