1
0
mirror of https://github.com/golang/go synced 2024-11-13 15:00:23 -07:00
go/misc/cgo/test/testdata
Rémy Oudompheng 711ea1e716 cmd/cgo: simplify and fix handling of untyped constants
Instead of trying to guess type of constants in the AST,
which is hard, use the "var cgo%d Type = Constant"
so that typechecking is left to the Go compiler.

The previous code could still fail in some cases
for constants imported from other modules
or defined in other, non-cgo files.

Fixes #30527

Change-Id: I2120cd90e90a74b9d765eeec53f6a3d2cfc1b642
Reviewed-on: https://go-review.googlesource.com/c/go/+/164897
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-03-06 21:16:20 +00:00
..
gcc68255
issue8756
issue8828
issue9026
issue9400
issue9510a
issue9510b
issue20266
issue23555a
issue23555b
issue24161arg
issue24161e0
issue24161e1
issue24161e2
issue24161res
issue26213
issue26430
issue26743
issue27054
issue27340
issue30527
cgo_linux_test.go
cgo_test.go
gcc68255.go
issue8756.go
issue8828.go
issue9026.go
issue9400_linux.go
issue9510.go
issue20266.go
issue23555.go
issue24161_darwin_test.go
issue26430.go
issue26743.go
issue27340.go
issue30527.go
test26213.go