1
0
mirror of https://github.com/golang/go synced 2024-11-22 01:44:40 -07:00
R=ken
OCL=35546
CL=35546
This commit is contained in:
Russ Cox 2009-10-09 16:01:32 -07:00
parent a14a8b2739
commit c736b6579f
2 changed files with 2 additions and 2 deletions

View File

@ -934,7 +934,7 @@ reswitch:
typechecklist(n->ninit, Etop); typechecklist(n->ninit, Etop);
typecheck(&n->ntest, Erv); typecheck(&n->ntest, Erv);
if(n->ntest != N && (t = n->ntest->type) != T && t->etype != TBOOL) if(n->ntest != N && (t = n->ntest->type) != T && t->etype != TBOOL)
yyerror("non-bool %+N used as for condition"); yyerror("non-bool %+N used as for condition", n->ntest);
typecheck(&n->nincr, Etop); typecheck(&n->nincr, Etop);
typechecklist(n->nbody, Etop); typechecklist(n->nbody, Etop);
goto ret; goto ret;

View File

@ -1,4 +1,4 @@
// $G $D/$F.go || echo BUG: should compile // errchk $G $D/$F.go
// Copyright 2009 The Go Authors. All rights reserved. // Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style