diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-12-14 20:39:53 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-12-14 20:39:53 -0800 |
commit | 773a4106bbbd20e2f8bd840607f3e2f74fd00ce5 (patch) | |
tree | af54cb69f607f825759738abfecea069a23e615c | |
parent | e2e0c7b86f8774e49f25e34d99ef63729d98c5f1 (diff) | |
download | gcc-773a4106bbbd20e2f8bd840607f3e2f74fd00ce5.zip gcc-773a4106bbbd20e2f8bd840607f3e2f74fd00ce5.tar.gz gcc-773a4106bbbd20e2f8bd840607f3e2f74fd00ce5.tar.bz2 |
go-test.exp: retain any characters at end of ERROR line
* go.test/go-test.exp (errchk): Retain any characters at the end
of the comment.
-rw-r--r-- | gcc/testsuite/go.test/go-test.exp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index b03cb16..c1b27c0 100644 --- 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 } |