misc/cgo/test: add test for passing compatible typedefs
misc/cgo/test: add test for passing compatible typedefs

Fixes #23720

Change-Id: I28e0c16503bc043f793e0dab19668f7a66313312
Reviewed-on: https://go-review.googlesource.com/118737
Run-TryBot: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>
Reviewed-by: Brad Fitzpatrick <ae9783c0b0efc69cd85ab025ddd17aa44cdc4aa5@golang.org>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>

golang/go,akutz/go,golang/go,josharian/go,CAFxX/go,nawawi/go,cloudflare/go,CAFxX/go,golang/go,CAFxX/go,josharian/go,akutz/go,cloudflare/go,josharian/go,cloudflare/go,akutz/go,cloudflare/go,cloudflare/go,CAFxX/go,josharian/go,nawawi/go,nawawi/go,golang/go,cloudflare/go,golang/go,akutz/go,CAFxX/go,CAFxX/go,akutz/go,nawawi/go,josharian/go,CAFxX/go,akutz/go,josharian/go,josharian/go,josharian/go,nawawi/go,cloudflare/go,cloudflare/go,golang/go,nawawi/go,golang/go,CAFxX/go,akutz/go,golang/go,nawawi/go,akutz/go,nawawi/go