1
0
mirror of https://github.com/golang/go synced 2024-11-24 16:30:17 -07:00
go/misc/cgo
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
..
errors cmd/cgo: use first error position instead of last one 2017-08-14 05:29:11 +00:00
fortran *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
gmp
life
nocgo
stdio
test cmd/cgo: unwrap typedef-chains before type checking 2017-06-27 23:02:34 +00:00
testasan
testcarchive misc/cgo/testcarchive: fix go env error message 2017-05-24 22:27:16 +00:00
testcshared runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
testgodefs
testplugin plugin: resolve plugin import path issue 2017-04-26 00:54:54 +00:00
testsanitizers misc/cgo/testsanitizers: also skip tsan11/tsan12 when using GCC 2017-08-04 23:05:00 +00:00
testshared cmd/link: only include the version info and export data in ABI hash 2017-04-17 22:02:01 +00:00
testsigfwd
testso
testsovar
testtls