summaryrefslogtreecommitdiff
path: root/test/func4.go
Commit message (Collapse)AuthorAgeFilesLines
* test: explanatory comments [c-g]*Rob Pike2012-02-191-0/+3
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656103
* test: use testlib (fourth 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, bradfitz CC=golang-dev https://golang.org/cl/5673079
* test: explicitly use variables to avoid gccgo "not used" errorIan Lance Taylor2012-01-221-0/+1
| | | | | | | | | | | | | I haven't looked at the source, but the gc compiler appears to omit "not used" errors when there is an error in the initializer. This is harder to do in gccgo, and frankly I think the "not used" error is still useful even if the initializer has a problem. This CL tweaks some tests to avoid the error, which is not the point of these tests in any case. R=golang-dev, r CC=golang-dev https://golang.org/cl/5561059
* test: remove semiocolons.Rob Pike2010-09-041-2/+2
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev https://golang.org/cl/2157041
* more 6g reorg; checkpoint.Russ Cox2009-08-031-2/+2
| | | | | | | | | typecheck.c is now responsible for all type checking except for assignment and function argument "..." R=ken OCL=32661 CL=32667
* Recognize gccgo error messages:Ian Lance Taylor2009-02-061-2/+2
| | | | | | | | | | func4.go:8:11: error: invalid operand for unary '&' func4.go:9:8: error: invalid left hand side of assignment R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=24294 CL=24603
* update go code tree to new func rules.Russ Cox2009-01-301-0/+14
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960