summaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue4251.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/issue4251.go')
-rw-r--r--test/fixedbugs/issue4251.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fixedbugs/issue4251.go b/test/fixedbugs/issue4251.go
index 4adec2bab..3668d4c89 100644
--- a/test/fixedbugs/issue4251.go
+++ b/test/fixedbugs/issue4251.go
@@ -9,13 +9,13 @@
package p
func F1(s []byte) []byte {
- return s[2:1] // ERROR "invalid slice index"
+ return s[2:1] // ERROR "invalid slice index|inverted slice range"
}
func F2(a [10]byte) []byte {
- return a[2:1] // ERROR "invalid slice index"
+ return a[2:1] // ERROR "invalid slice index|inverted slice range"
}
func F3(s string) string {
- return s[2:1] // ERROR "invalid slice index"
+ return s[2:1] // ERROR "invalid slice index|inverted slice range"
}