aboutsummaryrefslogtreecommitdiff
path: root/test/char_lit1.go
AgeCommit message (Collapse)Author
2021-03-05cmd/compile: do not report error for invalid constantCuong Manh Le
Invalid constant was already reported by noder, so don't re-check in typecheck, which lead to compiler crashing. Updates #43311 Change-Id: I48e2f540601cef725c1ff628c066ed15d848e771 Reviewed-on: https://go-review.googlesource.com/c/go/+/298713 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2012-02-19test: [a-c]: add introductory comments to testsRob Pike
Very few of the compiler regression tests include a comment saying waht they do. Many are obvious, some are anything but. I've started with a-c in the top directory. More will follow once we agree on the approach, correctness, and thoroughness here. zerodivide.go sneaked in too. R=rsc, r CC=golang-dev https://golang.org/cl/5656100
2012-02-16test: use testlib (first 100)Russ Cox
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656082
2010-08-31test: Match gccgo error messages.Ian Lance Taylor
gcc conventionally does not upper case in error messages. char_lit1.go:13: error: invalid unicode code point 0xd800 char_lit1.go:14: error: invalid unicode code point 0xd999 char_lit1.go:15: error: invalid unicode code point 0xdc01 char_lit1.go:16: error: invalid unicode code point 0xdddd char_lit1.go:17: error: invalid unicode code point 0xdfff char_lit1.go:20: error: invalid unicode code point 0x110000 char_lit1.go:22: error: invalid unicode code point 0x110000 char_lit1.go:23: error: invalid unicode code point 0xffffffff R=rsc CC=golang-dev https://golang.org/cl/2040042
2010-06-10test: check that surrogate pair runes and huge rune values are rejectedRuss Cox
R=r CC=golang-dev https://golang.org/cl/1615042