projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e0c7b
)
go-test.exp: retain any characters at end of ERROR line
author
Ian Lance Taylor
<iant@golang.org>
Tue, 15 Dec 2020 04:39:53 +0000
(20:39 -0800)
committer
Ian Lance Taylor
<iant@golang.org>
Tue, 15 Dec 2020 04:39:53 +0000
(20:39 -0800)
* go.test/go-test.exp (errchk): Retain any characters at the end
of the comment.
gcc/testsuite/go.test/go-test.exp
patch
|
blob
|
history
diff --git
a/gcc/testsuite/go.test/go-test.exp
b/gcc/testsuite/go.test/go-test.exp
index b03cb16990d9a5e88f7e05395fe579fc78569261..c1b27c0923624345906846c429bbd19d9311aab2 100644
(file)
--- a/
gcc/testsuite/go.test/go-test.exp
+++ b/
gcc/testsuite/go.test/go-test.exp
@@
-124,8
+124,7
@@
proc errchk { test opts } {
# to
# // { dg-error {string} }
# The latter is what go-dg-runtest expects.
- # Retain an optional trailing */, for syntax/semi6.go.
- regsub {// (GCCGO_)?ERROR "([^"]*)" *(\*/)?$} $copy_line "// \{ dg-error \{\\2\} \}\\3" out_line
+ regsub {// (GCCGO_)?ERROR "([^"]*)"([^"]*)$} $copy_line "// \{ dg-error \{\\2\} \}\\3" out_line
puts $fdout $out_line
}