1
0
mirror of https://github.com/golang/go synced 2024-11-18 05:44:47 -07:00
go/misc/cgo/test
Tai e13a4d9586 cmd/cgo: build unique C type cache keys from parent names
When translating C types, cache the in-progress type under its parent
names, so that anonymous structs can also be translated for multiple
typedefs, without clashing.

Standalone types are not affected by this change.

Also updated the test for issue 9026 because the C struct name
generation algorithm has changed.

Fixes #31891

Change-Id: I00cc64852a2617ce33da13f74caec886af05b9f2
Reviewed-on: https://go-review.googlesource.com/c/go/+/181857
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-10-05 00:16:04 +00:00
..
testdata cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
backdoor.go
buildid_linux.go
callback_c_gc.c
callback_c_gccgo.c
callback_c.c
callback.go cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
cgo_linux_test.go misc/cgo/test: skip Setgid test on Android 2019-04-08 05:56:14 +00:00
cgo_stubs_android_test.go misc/cgo/test: consolidate tests into fewer cgo source files 2019-05-22 12:52:33 +00:00
cgo_test.go cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
cgo_thread_lock.go
cgo_unix_test.go
cthread_unix.c cmd/dist, misc/cgo: enable tests for aix/ppc64 2019-03-20 14:38:44 +00:00
cthread_windows.c
issue4029.c
issue4029.go
issue4029w.go
issue4273.c
issue4273b.c
issue4339.c
issue4339.h
issue5548_c.c
issue5740a.c
issue5740b.c
issue6833_c.c
issue6907export_c.c
issue6997_linux.c
issue6997_linux.go
issue7234_test.go
issue8148.go
issue8331.h
issue8517_windows.c
issue8517_windows.go
issue8517.go
issue8694.go
issue8811.c
issue8945.go
issue18146.go misc/cgo/test: consolidate tests into fewer cgo source files 2019-05-22 12:52:33 +00:00
issue20910.c
issue21897.go
issue21897b.go
issue31891.c cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00
overlaydir_test.go
pkg_test.go misc/cgo/test: set PWD when executing 'go test' in an alternate GOPATH 2019-03-01 18:35:31 +00:00
setgid_linux.go
sigaltstack.go all: add new GOOS=illumos, split out of GOOS=solaris 2019-04-30 16:59:13 +00:00
sigprocmask.c
sigprocmask.go
test_unix.go misc/cgo/test: consolidate tests into fewer cgo source files 2019-05-22 12:52:33 +00:00
test_windows.go misc/cgo/test: consolidate tests into fewer cgo source files 2019-05-22 12:52:33 +00:00
test.go cmd/cgo: optimize cgoCheckPointer call 2019-10-02 20:51:29 +00:00
testx.go cmd/cgo: build unique C type cache keys from parent names 2019-10-05 00:16:04 +00:00