aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/gofix/url_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/gofix/url_test.go')
-rw-r--r--src/cmd/gofix/url_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cmd/gofix/url_test.go b/src/cmd/gofix/url_test.go
index d6e3b52ddf..8d9542cbca 100644
--- a/src/cmd/gofix/url_test.go
+++ b/src/cmd/gofix/url_test.go
@@ -80,10 +80,15 @@ import (
"http"
)
+type U struct{ url int }
+type M map[int]int
+
func f() {
http.ParseURL(a)
var url = 23
url, x := 45, y
+ _ = U{url: url}
+ _ = M{url + 1: url}
}
func g(url string) string {
@@ -98,10 +103,15 @@ func h() (url string) {
import "url"
+type U struct{ url int }
+type M map[int]int
+
func f() {
url.Parse(a)
var url_ = 23
url_, x := 45, y
+ _ = U{url: url_}
+ _ = M{url_ + 1: url_}
}
func g(url_ string) string {