summaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue4463.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue4463.go')
-rw-r--r--test/fixedbugs/issue4463.go44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/fixedbugs/issue4463.go b/test/fixedbugs/issue4463.go
index fe07af71f..70977ceb7 100644
--- a/test/fixedbugs/issue4463.go
+++ b/test/fixedbugs/issue4463.go
@@ -45,17 +45,17 @@ func F() {
(println("bar"))
(recover())
- go append(a, 0) // ERROR "discards result"
- go cap(a) // ERROR "discards result"
- go complex(1, 2) // ERROR "discards result"
- go imag(1i) // ERROR "discards result"
- go len(a) // ERROR "discards result"
- go make([]int, 10) // ERROR "discards result"
- go new(int) // ERROR "discards result"
- go real(1i) // ERROR "discards result"
- go unsafe.Alignof(a) // ERROR "discards result"
- go unsafe.Offsetof(s.f) // ERROR "discards result"
- go unsafe.Sizeof(a) // ERROR "discards result"
+ go append(a, 0) // ERROR "not used|discards result"
+ go cap(a) // ERROR "not used|discards result"
+ go complex(1, 2) // ERROR "not used|discards result"
+ go imag(1i) // ERROR "not used|discards result"
+ go len(a) // ERROR "not used|discards result"
+ go make([]int, 10) // ERROR "not used|discards result"
+ go new(int) // ERROR "not used|discards result"
+ go real(1i) // ERROR "not used|discards result"
+ go unsafe.Alignof(a) // ERROR "not used|discards result"
+ go unsafe.Offsetof(s.f) // ERROR "not used|discards result"
+ go unsafe.Sizeof(a) // ERROR "not used|discards result"
go close(c)
go copy(a, a)
@@ -65,17 +65,17 @@ func F() {
go println("bar")
go recover()
- defer append(a, 0) // ERROR "discards result"
- defer cap(a) // ERROR "discards result"
- defer complex(1, 2) // ERROR "discards result"
- defer imag(1i) // ERROR "discards result"
- defer len(a) // ERROR "discards result"
- defer make([]int, 10) // ERROR "discards result"
- defer new(int) // ERROR "discards result"
- defer real(1i) // ERROR "discards result"
- defer unsafe.Alignof(a) // ERROR "discards result"
- defer unsafe.Offsetof(s.f) // ERROR "discards result"
- defer unsafe.Sizeof(a) // ERROR "discards result"
+ defer append(a, 0) // ERROR "not used|discards result"
+ defer cap(a) // ERROR "not used|discards result"
+ defer complex(1, 2) // ERROR "not used|discards result"
+ defer imag(1i) // ERROR "not used|discards result"
+ defer len(a) // ERROR "not used|discards result"
+ defer make([]int, 10) // ERROR "not used|discards result"
+ defer new(int) // ERROR "not used|discards result"
+ defer real(1i) // ERROR "not used|discards result"
+ defer unsafe.Alignof(a) // ERROR "not used|discards result"
+ defer unsafe.Offsetof(s.f) // ERROR "not used|discards result"
+ defer unsafe.Sizeof(a) // ERROR "not used|discards result"
defer close(c)
defer copy(a, a)