summaryrefslogtreecommitdiff
path: root/test/fixedbugs/bug205.go
Commit message (Collapse)AuthorAgeFilesLines
* test: match gccgo error messagesR?my Oudompheng2013-06-201-3/+3
| | | | | | R=iant, golang-dev CC=golang-dev https://codereview.appspot.com/10365052
* cmd/gc: clean up string index errorsRuss Cox2013-02-031-3/+3
| | | | | | | | | | Unify with array/slice errors, which were already good. Fixes issue 4232. R=ken2 CC=golang-dev https://codereview.appspot.com/7271046
* test: use testlib (second 100)Russ Cox2012-02-161-1/+1
| | | | | | | | | | | X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev CC=golang-dev http://codereview.appspot.com/5673078
* errchk: allow multiple patternsRuss Cox2011-08-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | // ERROR "pattern1" "pattern2" means that there has to be one or more lines matching pattern1 and then excluding those, there have to be one or more lines matching pattern2. So if you expect two different error messages from a particular line, writing two separate patterns checks that both errors are produced. Also, errchk now flags lines that produce more errors than expected. Before, as long as at least one error matched the pattern, all the others were ignored. Revise tests to expect or silence these additional errors. R=lvd, r, iant CC=golang-dev http://codereview.appspot.com/4869044
* Match gccgo error messages.Ian Lance Taylor2009-10-211-2/+2
| | | | | | | | | | | bug205.go:14:12: error: index must be integer bug205.go:15:12: error: index must be integer bug205.go:16:12: error: incompatible type for map index R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=35957 CL=35960
* check type of string/map/array index expressionsRuss Cox2009-09-091-0/+18
R=ken OCL=34478 CL=34480