1
0
mirror of https://github.com/golang/go synced 2024-11-27 01:31:21 -07:00
go/misc/cgo/errors
Matthew Dempsky ba30c082c0 cmd/cgo: check for compiler errors in the C preamble
E.g., here's the new "go build" output:

$ go build misc/cgo/errors/issue8442.go
# command-line-arguments
could not determine kind of name for C.issue8442foo

gcc errors for preamble:
misc/cgo/errors/issue8442.go:11:19: error: unknown type name 'UNDEF'

Fixes #8442.

LGTM=iant
R=iant, alex.brainman
CC=golang-codereviews
https://golang.org/cl/129160043
2014-08-14 09:21:58 -07:00
..
err1.go
err2.go
err3.go cmd/cgo: enforce typing of 0-sized types 2014-03-27 20:23:16 +00:00
issue7757.go cmd/cgo: make C function pointers non-assignable 2014-08-12 12:55:12 -07:00
issue8442.go cmd/cgo: check for compiler errors in the C preamble 2014-08-14 09:21:58 -07:00
test.bash cmd/cgo: check for compiler errors in the C preamble 2014-08-14 09:21:58 -07:00