]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove redeclared structs to make tests build
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Tue, 15 Aug 2017 06:41:01 +0000 (12:11 +0530)
committerMartin Möhrmann <moehrmann@google.com>
Tue, 15 Aug 2017 07:19:25 +0000 (07:19 +0000)
struct32 and struct40 structs are already declared, remove them to
make runtime tests build.

Change-Id: I3814f2b850dcb15c4002a3aa22e2a9326e5a5e53
Reviewed-on: https://go-review.googlesource.com/55614
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
src/runtime/chan_test.go

index dd04f82a06a6d86b1aa932284386deaff7fafb9a..a09baf52e1c20aecdbe8406c8f13f55432218d6f 100644 (file)
@@ -669,11 +669,7 @@ done:
        <-ready2
 }
 
-type (
-       struct0  struct{}
-       struct32 struct{ a, b, c, d int64 }
-       struct40 struct{ a, b, c, d, e int64 }
-)
+type struct0 struct{}
 
 func BenchmarkMakeChan(b *testing.B) {
        b.Run("Byte", func(b *testing.B) {