go/misc/cgo
Ian Lance Taylor b8ae3569c8 [release-branch.go1.10] cmd/cgo: don't give inconsistent typedef error for cgo-defined types
The cgo tool predefines some C types such as C.uint. Don't give an
error if the type that cgo defines does not match the type in a header file.

Fixes #26743

Change-Id: I9ed3b4c482b558d8ffa8bf61eb3209415b7a9e3c
Reviewed-on: https://go-review.googlesource.com/127356
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
(cherry picked from commit c29370c98e)
Reviewed-on: https://go-review.googlesource.com/128396
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-08-08 01:13:46 +00:00
..
errors cmd/go: accept only limited compiler and linker flags in #cgo directives 2018-02-07 15:35:57 +00:00
fortran *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
gmp all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
life test/run: use go tool compile + link instead of go run when possible 2017-10-31 13:21:05 +00:00
nocgo
stdio test/run: use go tool compile + link instead of go run when possible 2017-10-31 13:21:05 +00:00
test [release-branch.go1.10] cmd/cgo: don't give inconsistent typedef error for cgo-defined types 2018-08-08 01:13:46 +00:00
testasan
testcarchive cmd/go: correct buildmode test (from "c-header" to "c-shared") 2018-01-11 19:24:35 +00:00
testcshared [release-branch.go1.10] misc/cgo/testcshared: use file descriptor 30 for TestUnexportedSymbols 2018-05-08 16:30:25 +00:00
testgodefs [release-branch.go1.10] cmd/cgo: don't resolve typedefs in -godefs mode 2018-08-08 01:13:28 +00:00
testplugin [release-branch.go1.10] runtime: identify special functions by flag instead of address 2018-03-29 06:09:45 +00:00
testsanitizers all: use Fatalf instead of Fatal if format is given 2018-01-10 01:35:45 +00:00
testshared [release-branch.go1.10] cmd/go: fix go list .Stale computation 2018-04-27 20:51:11 +00:00
testsigfwd misc/cgo/testsigfwd: add missing return statement 2016-08-30 21:44:14 +00:00
testso
testsovar
testtls all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00