]> Cypherpunks repositories - gostls13.git/commitdiff
change reflect test to avoid bug132
authorRuss Cox <rsc@golang.org>
Tue, 25 Aug 2009 00:04:12 +0000 (17:04 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 25 Aug 2009 00:04:12 +0000 (17:04 -0700)
R=gri
DELTA=20  (17 added, 0 deleted, 3 changed)
OCL=33793
CL=33802

src/pkg/reflect/all_test.go

index 6aa54e01ce13e33293c450219a100cd6f599a816..5f0211c6a598a953047f3a0b197996d0f578aecf 100644 (file)
@@ -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 {