summaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/bug014.go8
-rw-r--r--test/fixedbugs/bug015.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/fixedbugs/bug014.go b/test/fixedbugs/bug014.go
index 25a8af292..dac2ce517 100644
--- a/test/fixedbugs/bug014.go
+++ b/test/fixedbugs/bug014.go
@@ -7,8 +7,8 @@
package main
func main() {
- var c00 uint8 = '\0'; // three octal required; should not compile
- var c01 uint8 = '\07'; // three octal required; should not compile
- var cx0 uint8 = '\x0'; // two hex required; should not compile
- var cx1 uint8 = '\x'; // two hex required; REALLY should not compile
+ var c00 uint8 = '\0'; // ERROR "oct|char"
+ var c01 uint8 = '\07'; // ERROR "oct|char"
+ var cx0 uint8 = '\x0'; // ERROR "hex|char"
+ var cx1 uint8 = '\x'; // ERROR "hex|char"
}
diff --git a/test/fixedbugs/bug015.go b/test/fixedbugs/bug015.go
index cbb9652c0..9178f626f 100644
--- a/test/fixedbugs/bug015.go
+++ b/test/fixedbugs/bug015.go
@@ -8,6 +8,6 @@ package main
func main() {
var i33 int64;
- if i33 == (1<<64) -1 { // BUG: should not compile; constant too large
+ if i33 == (1<<64) -1 { // ERROR "overflow"
}
}