diff options
author | Ian Lance Taylor <iant@golang.org> | 2010-08-31 14:12:23 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2010-08-31 14:12:23 -0700 |
commit | 37e9282d74a9db880e0b2a4d9d8b1ee2c0c04d12 (patch) | |
tree | a3216acec89086184fd059fd7d5d1011989f6507 /test/errchk | |
parent | 5d8703743514350ef7fe39b4ee36238ef071c877 (diff) | |
download | go-37e9282d74a9db880e0b2a4d9d8b1ee2c0c04d12.tar.gz |
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
Diffstat (limited to 'test/errchk')
-rwxr-xr-x | test/errchk | 4 |
1 files changed, 2 insertions, 2 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; |