]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/test: tweak to pass with GCC 10
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Dec 2019 01:00:08 +0000 (17:00 -0800)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Dec 2019 20:12:18 +0000 (20:12 +0000)
commitb234fdb5cd13ae43bda389e4eb3ce7cee3cfc420
tree15ee8acaedd40a825f2513f1985268a7b0fcf82c
parent21713f41d17514a432a881655332fbcde4814b45
misc/cgo/test: tweak to pass with GCC 10

The test for issue 8945 was marked to only run on gccgo, but there was
no reason for that. It broke for gccgo using GCC 10, because GCC 10
defaults to -fno-common. Make the test run on gc, and split it into
test.go and testx.go to make it work with GCC 10.

The test for issue 9026 used two identical structs which GCC 10 turns
into the same type. The point of the test is not that the structs are
identical, but that they are handled in a particular order. So make
them different.

Updates #8945
Updates #9026

Change-Id: I000fb02f88f346cfbbe5dbefedd944a2c64e8d8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/211217
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
misc/cgo/test/issue8945.go [deleted file]
misc/cgo/test/test.go
misc/cgo/test/testdata/issue9026/issue9026.go
misc/cgo/test/testx.go