]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use same Go type for typedef to anonymous struct
authorIan Lance Taylor <iant@golang.org>
Mon, 2 Jun 2014 19:55:43 +0000 (12:55 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 2 Jun 2014 19:55:43 +0000 (12:55 -0700)
commit4e65f18cae1b4ee6074e3e544c322af030d04288
treea86273690c57fe99ce14cca25e920e01ad1afc1b
parent06b67f304e69593e7f2bbacc3f3a533f4346ee53
cmd/cgo: use same Go type for typedef to anonymous struct

If we see a typedef to an anonymous struct more than once,
presumably in two different Go files that import "C", use the
same Go type name.

Fixes #8133.

LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/102080043
misc/cgo/test/issue8331.h [new file with mode: 0644]
misc/cgo/test/issue8331a.go [new file with mode: 0644]
misc/cgo/test/issue8331b.go [new file with mode: 0644]
src/cmd/cgo/gcc.go