From 37e9282d74a9db880e0b2a4d9d8b1ee2c0c04d12 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 31 Aug 2010 14:12:23 -0700 Subject: test: gccgo and gc print the error on different lines. This introduces GC_ERROR to mark an error only issued by the gc compiler. GCCGO_ERROR already exists to mark errors only issued by the gccgo compiler. Obviously these should be used sparingly. bug195.go:9: error: interface contains embedded non-interface bug195.go:12: error: interface contains embedded non-interface bug195.go:15: error: interface contains embedded non-interface bug195.go:18: error: invalid recursive interface bug195.go:22: error: invalid recursive interface R=rsc CC=golang-dev http://codereview.appspot.com/2040043 --- test/errchk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/errchk') 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; -- cgit v1.2.1