]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] test: relax issue7921.go diagnostic message
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Tue, 7 Jun 2022 07:57:11 +0000 (14:57 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Thu, 9 Jun 2022 01:34:45 +0000 (01:34 +0000)
commit1a6c96bb9b0e1674048758d4c92e33fb03c4833e
tree5f92618b87160f87c36db46098d6daf1fc8cb39f
parentc50c6bbc030ea170320f438c3f328fa475e87e2b
[dev.unified] test: relax issue7921.go diagnostic message

For constants literal, iimport/iexport read/write them as basic literal
nodes. So they are printed in diagnostic message as Go syntax. So "foo"
will be reported as string("foo").

Unified IR read/write the raw expression as string value, and when
printed in diagnostic, the string value is written out exactly as-is, so
"foo" will be written as "foo".

Thus, this CL relax the test in issue7921.go to match the string value only.

Updates #53058

Change-Id: I6fcf4fdcfc4b3be91cb53b081c48bd57186d8f35
Reviewed-on: https://go-review.googlesource.com/c/go/+/410795
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/noder/helpers.go
test/fixedbugs/issue7921.go
test/run.go