summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug014.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs/bug014.go')
-rw-r--r--test/fixedbugs/bug014.go8
1 files changed, 4 insertions, 4 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"
}