]> Cypherpunks repositories - gostls13.git/commitdiff
reflect: add embedded field test
authorIan Lance Taylor <iant@golang.org>
Thu, 1 Feb 2018 01:12:29 +0000 (17:12 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 14 Feb 2018 15:28:25 +0000 (15:28 +0000)
Gccgo failed this test.

Updates #23620

Change-Id: I3979a6d3b87d2d014850accf9cb7f356349e6195
Reviewed-on: https://go-review.googlesource.com/91138
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/reflect/all_test.go

index e51d19efdd6fa686711e9fef4361f3a522f5d33a..aeeea78ca63829f7bed17a450bc602f81402c081 100644 (file)
@@ -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{