diff options
author | Ian Lance Taylor <iant@golang.org> | 2008-09-19 14:39:49 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2008-09-19 14:39:49 -0700 |
commit | e8907d80fc5aba60cca1f287397ff0736b43de3b (patch) | |
tree | df2e4b5c4c47f9343b5593e06979b50720b00234 /test/fixedbugs/bug014.go | |
parent | 6827f966c8e1f1b0f59ec5885f78bfe44073f1a6 (diff) | |
download | golang-e8907d80fc5aba60cca1f287397ff0736b43de3b.tar.gz |
Check for specific error messages in the testsuite. This
permits testing that the compiler emits error messages for
specific lines that match egrep regexps. The desired error
messages are expressed using comments of the form
// ERROR "regexp"
R=r
DELTA=90 (73 added, 8 deleted, 9 changed)
OCL=15513
CL=15566
Diffstat (limited to 'test/fixedbugs/bug014.go')
-rw-r--r-- | test/fixedbugs/bug014.go | 8 |
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" } |