]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libgo/go/net/http/response_test.go
libgo: update to Go1.14beta1
[thirdparty/gcc.git] / libgo / go / net / http / response_test.go
index ee7f0d0b708ffc6233a740b289f15fe4fbeb7a9d..0c78df6f3fdc8eb40127033fc2c8c9c39e8cae0a 100644 (file)
@@ -636,6 +636,11 @@ var readResponseCloseInMiddleTests = []struct {
        {true, true},
 }
 
+type readerAndCloser struct {
+       io.Reader
+       io.Closer
+}
+
 // TestReadResponseCloseInMiddle tests that closing a body after
 // reading only part of its contents advances the read to the end of
 // the request, right up until the next request.