aboutsummaryrefslogtreecommitdiff
path: root/test/char_lit1.go
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2021-03-04 22:24:58 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2021-03-05 18:46:43 +0000
commit9e6b1fcd0a42db0f4699ff17e3b248e563f7eee4 (patch)
tree79c1f2de4ccded588da012a27dc5b7697f60d3b8 /test/char_lit1.go
parent51d8d351c1bb2cac74e1bbf8545245cdbc8914c3 (diff)
downloadgo-9e6b1fcd0a42db0f4699ff17e3b248e563f7eee4.tar.gz
go-9e6b1fcd0a42db0f4699ff17e3b248e563f7eee4.zip
cmd/compile: do not report error for invalid constant
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>
Diffstat (limited to 'test/char_lit1.go')
-rw-r--r--test/char_lit1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/char_lit1.go b/test/char_lit1.go
index 489744b6e9..8899aff83a 100644
--- a/test/char_lit1.go
+++ b/test/char_lit1.go
@@ -1,4 +1,4 @@
-// errorcheck
+// errorcheck -d=panic
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style