From 773a4106bbbd20e2f8bd840607f3e2f74fd00ce5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 14 Dec 2020 20:39:53 -0800 Subject: [PATCH] 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. --- gcc/testsuite/go.test/go-test.exp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/testsuite/go.test/go-test.exp b/gcc/testsuite/go.test/go-test.exp index b03cb16990d..c1b27c09236 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 } -- 2.11.4.GIT