1
0
mirror of https://github.com/golang/go synced 2024-11-26 10:48:22 -07:00

exp/types: don't test importing types if using gccgo

The exp/types packages does not support the gccgo export data
format.  At some point it should, but not yet.

R=gri, bradfitz, r, iant, dsymonds
CC=golang-dev
https://golang.org/cl/6854068
This commit is contained in:
Ian Lance Taylor 2012-11-19 21:56:24 -08:00
parent 54b9c20151
commit 4bf261f9e3

View File

@ -127,6 +127,10 @@ var importedObjectTests = []struct {
}
func TestGcImportedTypes(t *testing.T) {
// This package does not yet know how to read gccgo export data.
if runtime.Compiler == "gccgo" {
return
}
for _, test := range importedObjectTests {
s := strings.Split(test.name, ".")
if len(s) != 2 {