summaryrefslogtreecommitdiff
path: root/test/blank1.go
Commit message (Collapse)AuthorAgeFilesLines
* test: match gccgo error messages for blank1.goIan Lance Taylor2013-09-281-1/+1
| | | | | | | | | | | blank1.go:10:9: error: invalid package name _ blank1.go:17:2: error: cannot use _ as value blank1.go:18:7: error: cannot use _ as value blank1.go:20:8: error: invalid use of ?_? R=golang-dev, r CC=golang-dev https://codereview.appspot.com/14088044
* cmd/gc: fix computation of equality class of types.R?my Oudompheng2013-07-021-0/+7
| | | | | | | | | | | | | | A struct with a single field was considered as equivalent to the field type, which is incorrect is the field is blank. Fields with padding could make the compiler think some types are comparable when they are not. Fixes issue 5698. R=rsc, golang-dev, daniel.morsing, bradfitz, gri, r CC=golang-dev https://codereview.appspot.com/10271046
* cmd/gc: disallow selectors to the blank identifierDaniel Morsing2013-03-041-0/+5
| | | | | | | | Fixes issue 4941. R=golang-dev, rsc CC=golang-dev https://codereview.appspot.com/7415051
* test: [a-c]: add introductory comments to testsRob Pike2012-02-191-0/+3
| | | | | | | | | | | | Very few of the compiler regression tests include a comment saying waht they do. Many are obvious, some are anything but. I've started with a-c in the top directory. More will follow once we agree on the approach, correctness, and thoroughness here. zerodivide.go sneaked in too. R=rsc, r CC=golang-dev http://codereview.appspot.com/5656100
* test: use testlib (first 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 http://codereview.appspot.com/5656082
* 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 http://codereview.appspot.com/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 http://codereview.appspot.com/2157041
* write-only variable _Russ Cox2009-09-081-0/+12
R=ken OCL=34465 CL=34470