From 92543daff17c64bfd0f945e827279b8f50940e8e Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 24 Aug 2009 17:04:12 -0700 Subject: [PATCH] change reflect test to avoid bug132 R=gri DELTA=20 (17 added, 0 deleted, 3 changed) OCL=33793 CL=33802 --- src/pkg/reflect/all_test.go | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/pkg/reflect/all_test.go b/src/pkg/reflect/all_test.go index 6aa54e01ce..5f0211c6a5 100644 --- a/src/pkg/reflect/all_test.go +++ b/src/pkg/reflect/all_test.go @@ -841,8 +841,17 @@ type FTest struct { value int; } +type D1 struct { + d int; +} +type D2 struct { + d int; +} + type S0 struct { - a, b, c, d, d int; + a, b, c int; + D1; + D2; } type S1 struct { @@ -855,11 +864,19 @@ type S2 struct { *S1; } -type S3 struct { +type S1x struct { S1; +} + +type S1y struct { + S1; +} + +type S3 struct { + S1x; S2; d, e int; - *S1; + *S1y; } type S4 struct { -- 2.48.1