diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-09-09 09:00:32 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-09-09 09:00:32 -0700 |
commit | 4427965ee4f3632b9ea9dedd4726ba26b86d4535 (patch) | |
tree | 4ec3c391f43bb51484d01ee2afc17c12531e57fe /test/nul1.go | |
parent | 2deee2936c1bf44e07541e10552696d8118a6bb5 (diff) | |
download | go-4427965ee4f3632b9ea9dedd4726ba26b86d4535.tar.gz go-4427965ee4f3632b9ea9dedd4726ba26b86d4535.zip |
test: Match gccgo error messages.
tmp.go:4:20: error: invalid NUL byte
tmp.go:6:24: error: invalid NUL byte
tmp.go:8:15: error: invalid NUL byte
tmp.go:10:21: error: invalid NUL byte
tmp.go:12:22: error: invalid NUL byte
tmp.go:14:21: error: invalid UTF-8 encoding
tmp.go:14:22: error: invalid UTF-8 encoding
tmp.go:16:25: error: invalid UTF-8 encoding
tmp.go:18:15: error: invalid UTF-8 encoding
tmp.go:18:16: error: invalid UTF-8 encoding
tmp.go:20:21: error: invalid UTF-8 encoding
tmp.go:20:22: error: invalid NUL byte
tmp.go:20:23: error: invalid NUL byte
tmp.go:23:6: error: invalid UTF-8 encoding
tmp.go:23:7: error: invalid UTF-8 encoding
tmp.go:25:22: error: invalid UTF-8 encoding
R=rsc
CC=golang-dev
https://golang.org/cl/2151046
Diffstat (limited to 'test/nul1.go')
-rw-r--r-- | test/nul1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nul1.go b/test/nul1.go index d98fd714a9..9d6974f818 100644 --- a/test/nul1.go +++ b/test/nul1.go @@ -48,7 +48,7 @@ var yy = ` + "`in raw string \xff foo`" + ` // ERROR "UTF-8" // in comment ` + "\xe2\x80\x01" + ` // ERROR "UTF-8" -/* in other comment ` + "\xe0\x00\x00" + ` */ // ERROR "UTF-8" +/* in other comment ` + "\xe0\x00\x00" + ` */ // ERROR "UTF-8|NUL" /* in variable name */ var z` + "\xc1\x81" + ` int // ERROR "UTF-8" |