1
0
mirror of https://github.com/golang/go synced 2024-11-23 11:00:08 -07: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
err2.go
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