diff --git a/test/blank1.go b/test/blank1.go index 5bc1efce5fd..bcc78466dc2 100644 --- a/test/blank1.go +++ b/test/blank1.go @@ -9,4 +9,5 @@ package _ // ERROR "invalid package name _" func main() { _() // ERROR "cannot use _ as value" x := _+1 // ERROR "cannot use _ as value" + _ = x } diff --git a/test/fixedbugs/bug014.go b/test/fixedbugs/bug014.go index dac2ce5174a..38a6e51abcb 100644 --- a/test/fixedbugs/bug014.go +++ b/test/fixedbugs/bug014.go @@ -11,4 +11,5 @@ func main() { var c01 uint8 = '\07'; // ERROR "oct|char" var cx0 uint8 = '\x0'; // ERROR "hex|char" var cx1 uint8 = '\x'; // ERROR "hex|char" + _, _, _, _ = c00, c01, cx0, cx1 } diff --git a/test/fixedbugs/bug108.go b/test/fixedbugs/bug108.go index 5c7649f0819..10e406de6ea 100644 --- a/test/fixedbugs/bug108.go +++ b/test/fixedbugs/bug108.go @@ -7,4 +7,5 @@ package main func f() { v := 1 << 1025; // ERROR "overflow|stupid shift" + _ = v } diff --git a/test/fixedbugs/bug175.go b/test/fixedbugs/bug175.go index a8f6e3ca406..1ca14150765 100644 --- a/test/fixedbugs/bug175.go +++ b/test/fixedbugs/bug175.go @@ -10,5 +10,5 @@ func f() (int, bool) { return 0, true } func main() { x, y := f(), 2; // ERROR "multi" + _, _ = x, y } - diff --git a/test/fixedbugs/bug363.go b/test/fixedbugs/bug363.go index 04fcfe1a875..9347ec28b62 100644 --- a/test/fixedbugs/bug363.go +++ b/test/fixedbugs/bug363.go @@ -17,5 +17,5 @@ func main() { println(b) var c int64 = (1<