1
0
mirror of https://github.com/golang/go synced 2024-09-30 16:08:36 -06:00
go/misc/cgo/test/testdata
Ian Lance Taylor b234fdb5cd 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>
2019-12-20 20:12:18 +00:00
..
gcc68255
issue8756
issue8828
issue9026 misc/cgo/test: tweak to pass with GCC 10 2019-12-20 20:12:18 +00:00
issue9400
issue9510a
issue9510b
issue20266
issue23555a
issue23555b
issue24161arg
issue24161e0
issue24161e1
issue24161e2
issue24161res
issue26213
issue26430
issue26743
issue27054
issue27340
issue29563 cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
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
issue29563.go cmd/link: permit duplicate weak symbols 2019-03-29 17:46:01 +00:00
issue30527.go
test26213.go