From 4d0bf3e1e184f78d4a2716245aa963aef0e918cf Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 1 Feb 2018 15:54:04 +0000 Subject: compiler: omit field name for embedded fields in reflection string This matches the gc compiler. The test case was sent for the master repo as https://golang.org/cl/91138. Fixes golang/go#23620 Reviewed-on: https://go-review.googlesource.com/91139 From-SVN: r257300 --- libgo/go/reflect/all_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libgo/go') diff --git a/libgo/go/reflect/all_test.go b/libgo/go/reflect/all_test.go index 6e74859..86e7385 100644 --- a/libgo/go/reflect/all_test.go +++ b/libgo/go/reflect/all_test.go @@ -170,6 +170,14 @@ var typeTests = []pair{ }{}, "interface { reflect_test.a(func(func(int) int) func(func(int)) int); reflect_test.b() }", }, + {struct { + x struct { + int32 + int64 + } + }{}, + "struct { int32; int64 }", + }, } var valueTests = []pair{ -- cgit v1.1