aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-02-01 15:54:04 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2018-02-01 15:54:04 +0000
commitc414a0dc5c00f3d8f38844ea9f0f020f31d15de9 (patch)
tree2ce98ab8a911ab2b8b2fadad8a9e68096c4b9c8a /libgo
parentaf255290d2a86faa14b78ed97da535402ba70d1e (diff)
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 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/reflect/all_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libgo/go/reflect/all_test.go b/libgo/go/reflect/all_test.go
index 6e748599de5..86e738555f8 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{