summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest/errchk4
-rw-r--r--test/fixedbugs/bug195.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/errchk b/test/errchk
index 115aa7be0..ab7192da2 100755
--- a/test/errchk
+++ b/test/errchk
@@ -60,8 +60,8 @@ sub bug() {
$line = 0;
foreach $src (@src) {
$line++;
- next unless $src =~ m|// ERROR (.*)|;
- $regexp = $1;
+ next unless $src =~ m|// (GC_)?ERROR (.*)|;
+ $regexp = $2;
if($regexp !~ /^"([^"]*)"/) {
print STDERR "$file:$line: malformed regexp\n";
next;
diff --git a/test/fixedbugs/bug195.go b/test/fixedbugs/bug195.go
index 27bbbd354..65ab02a03 100644
--- a/test/fixedbugs/bug195.go
+++ b/test/fixedbugs/bug195.go
@@ -19,9 +19,9 @@ type I4 interface {
}
type I5 interface {
- I6
+ I6 // GCCGO_ERROR "interface"
}
type I6 interface {
- I5 // ERROR "interface"
+ I5 // GC_ERROR "interface"
}