1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:20:13 -06:00
go/misc/cgo/errors
Daniel Morsing 0f82cfd3f0 cmd/cgo: enforce typing of 0-sized types
cgo represents all 0-sized and unsized types internally as [0]byte. This means that pointers to incomplete types would be interchangable, even if given a name by typedef.

Fixes #7409.

LGTM=iant
R=golang-codereviews, bradfitz, iant
CC=golang-codereviews
https://golang.org/cl/76450043
2014-03-27 20:23:16 +00:00
..
err1.go cmd/cgo: fix line number in an error message 2013-10-18 16:52:44 -04:00
err2.go cmd/cgo: fix line number in an error message 2013-10-18 16:52:44 -04:00
err3.go cmd/cgo: enforce typing of 0-sized types 2014-03-27 20:23:16 +00:00
test.bash cmd/cgo: enforce typing of 0-sized types 2014-03-27 20:23:16 +00:00