summaryrefslogtreecommitdiff
path: root/test/shift1.go
Commit message (Collapse)AuthorAgeFilesLines
* test: avoid "declared but not used" errors in shift1.goIan Lance Taylor2014-07-201-0/+2
| | | | | | | | | | | | | | | I'm improving gccgo's detection of variables that are only set but not used, and it triggers additional errors on this code. The new gccgo errors are correct; gc seems to suppress them due to the other, expected, errors. This change uses the variables so that no compiler will complain. gccgo change is http://codereview.appspot.com/119920043 . LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/116050043
* test/shift1.go: recognize gccgo errorsIan Lance Taylor2013-06-261-92/+93
| | | | | | R=golang-dev, remyoudompheng, iant CC=golang-dev https://codereview.appspot.com/10524045
* test: more systematic shift testsRobert Griesemer2013-03-211-4/+187
| | | | | | | | To be submitted once gc agrees. R=rsc, iant, remyoudompheng CC=golang-dev https://codereview.appspot.com/7861045
* cmd/gc: missing type inference for untyped complex() calls.R?my Oudompheng2013-03-161-0/+12
| | | | | | | | Fixes issue 5014. R=golang-dev, r, rsc, daniel.morsing CC=golang-dev https://codereview.appspot.com/7664043
* cmd/gc: simplify and fix defaultlit.R?my Oudompheng2013-03-041-0/+7
| | | | | | | | | | Fixes issue 4882. Fixes issue 4936. Fixes issue 4937. R=golang-dev, dave, daniel.morsing, rsc CC=golang-dev https://codereview.appspot.com/7432044
* test/[n-z]*.go: add documentationRob Pike2012-02-241-0/+2
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5700056
* test: use testlib (final 61)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/5671080
* test: match gccgo error messagesIan Lance Taylor2011-09-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bug363.go:13:12: error: invalid context-determined non-integer type for shift operand bug363.go:16:12: error: invalid context-determined non-integer type for shift operand pointer.go:34:6: error: incompatible type in initialization (pointer to interface type has no methods) pointer.go:36:6: error: incompatible type in initialization method2.go:15:1: error: invalid pointer or interface receiver type method2.go:16:1: error: invalid pointer or interface receiver type method2.go:21:1: error: invalid pointer or interface receiver type method2.go:22:1: error: invalid pointer or interface receiver type method2.go:28:15: error: type ?*Val? has no method ?val? method2.go:33:11: error: reference to undefined field or method ?val? shift1.go:19:16: error: invalid context-determined non-integer type for shift operand shift1.go:24:19: error: invalid context-determined non-integer type for shift operand shift1.go:25:17: error: invalid context-determined non-integer type for shift operand shift1.go:18:18: error: shift of non-integer operand shift1.go:26:13: error: floating point constant truncated to integer shift1.go:33:15: error: integer constant overflow shift1.go:34:15: error: integer constant overflow shift1.go:35:17: error: integer constant overflow R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5081051
* errchk: allow multiple patternsRuss Cox2011-08-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | // 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
* test: test cases for issue 1708.Robert Griesemer2011-05-251-0/+36
R=rsc CC=golang-dev http://codereview.appspot.com/4548058