]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: check for compiler errors in the C preamble
authorMatthew Dempsky <mdempsky@google.com>
Thu, 14 Aug 2014 16:21:58 +0000 (09:21 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 14 Aug 2014 16:21:58 +0000 (09:21 -0700)
commitba30c082c026b5ef029e5d855a90ea56ef9487ec
tree014776d997784481bf5f489445c78d5b5eff8c6d
parent937f0d59fcdeec593640c4b14725aa85ea50c59b
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
misc/cgo/errors/issue8442.go [new file with mode: 0644]
misc/cgo/errors/test.bash
src/cmd/cgo/gcc.go