Skip to content

Commit 9558ba2

Browse files
ianlancetaylorbradfitz
authored andcommitted
reflect: add embedded field test
Gccgo failed this test. Updates #23620 Change-Id: I3979a6d3b87d2d014850accf9cb7f356349e6195 Reviewed-on: https://go-review.googlesource.com/91138 Run-TryBot: Ian Lance Taylor <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
1 parent b03f1d1 commit 9558ba2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/reflect/all_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,14 @@ var typeTests = []pair{
170170
}{},
171171
"interface { reflect_test.a(func(func(int) int) func(func(int)) int); reflect_test.b() }",
172172
},
173+
{struct {
174+
x struct {
175+
int32
176+
int64
177+
}
178+
}{},
179+
"struct { int32; int64 }",
180+
},
173181
}
174182

175183
var valueTests = []pair{

0 commit comments

Comments
 (0)