From 203449cf0914f02fe2474b46375f1fdd5c832e7f Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 14 Jan 2020 16:12:18 -0800 Subject: [PATCH] go/internal/gccgoimporter: fix test The typestring for embedded fields in structs was changed by 8d30bd752d4 (type checking of function type parameters) but this test was not updated. Change-Id: I0d9438e3000939de09aa298c33ad1e9604a59fe8 --- src/go/internal/gccgoimporter/importer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/internal/gccgoimporter/importer_test.go b/src/go/internal/gccgoimporter/importer_test.go index a74a456868..fa50708513 100644 --- a/src/go/internal/gccgoimporter/importer_test.go +++ b/src/go/internal/gccgoimporter/importer_test.go @@ -95,7 +95,7 @@ var importerTests = [...]importerTest{ {pkgpath: "nointerface", name: "I", want: "type I int"}, {pkgpath: "issue29198", name: "FooServer", gccgoVersion: 7, want: "type FooServer struct{FooServer *FooServer; user string; ctx context.Context}"}, {pkgpath: "issue30628", name: "Apple", want: "type Apple struct{hey sync.RWMutex; x int; RQ [517]struct{Count uintptr; NumBytes uintptr; Last uintptr}}"}, - {pkgpath: "issue31540", name: "S", gccgoVersion: 7, want: "type S struct{b int; map[Y]Z}"}, + {pkgpath: "issue31540", name: "S", gccgoVersion: 7, want: "type S struct{b int; A2 /* = map[Y]Z */}"}, {pkgpath: "issue34182", name: "T1", want: "type T1 struct{f *T2}"}, }