]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: recognize untyped constants defined in different files
authorIan Lance Taylor <iant@golang.org>
Thu, 29 Nov 2018 00:02:15 +0000 (16:02 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 29 Nov 2018 01:29:56 +0000 (01:29 +0000)
commit4f26f24d2ae8c99bfaafb33db4b7be27ee13afab
treee2928de29f6b278f140d19ea1c1dee377dddcd62
parent048580d341a530bb8d9ca891f95ce79aace4151f
cmd/cgo: recognize untyped constants defined in different files

An untyped constant can be defined in any input file, we shouldn't
segregate them by file.

Updates #28772

Change-Id: I0347f15236833bb511eb49f86c449ee9241b0a25
Reviewed-on: https://go-review.googlesource.com/c/151600
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
misc/cgo/test/issue28545.go
misc/cgo/test/issue28772.go [new file with mode: 0644]
src/cmd/cgo/ast.go
src/cmd/cgo/gcc.go
src/cmd/cgo/main.go