0
1
mirror of https://github.com/golang/go synced 2025-05-22 05:48:03 +00:00

rewrite errchk in perl for speed (compared to bash)

R=iant
DELTA=125  (51 added, 53 deleted, 21 changed)
OCL=35508
CL=35511
This commit is contained in:
Russ Cox
2009-10-09 00:39:32 -07:00
parent 680ee6af63
commit d8b461dfca
2 changed files with 72 additions and 74 deletions

@ -16,22 +16,22 @@ type T struct {
func main() {
{
var x, y sync.Mutex;
x = y; // ERROR "assignment\[ -~\]*Mutex"
x = y; // ERROR "assignment.*Mutex"
_ = x;
}
{
var x, y T;
x = y; // ERROR "assignment\[ -~\]*Mutex"
x = y; // ERROR "assignment.*Mutex"
_ = x;
}
{
var x, y [2]sync.Mutex;
x = y; // ERROR "assignment\[ -~\]*Mutex"
x = y; // ERROR "assignment.*Mutex"
_ = x;
}
{
var x, y [2]T;
x = y; // ERROR "assignment\[ -~\]*Mutex"
x = y; // ERROR "assignment.*Mutex"
_ = x;
}
}