summaryrefslogtreecommitdiff
path: root/test/convlit.go
Commit message (Collapse)AuthorAgeFilesLines
* test: [a-c]: add introductory comments to testsRob Pike2012-02-191-3/+4
| | | | | | | | | | | | 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
* allow direct conversion between string and named []byte, []runeRuss Cox2011-11-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The allowed conversions before and after are: type Tstring string type Tbyte []byte type Trune []rune string <-> string // ok string <-> []byte // ok string <-> []rune // ok string <-> Tstring // ok string <-> Tbyte // was illegal, now ok string <-> Trune // was illegal, now ok Tstring <-> string // ok Tstring <-> []byte // ok Tstring <-> []rune // ok Tstring <-> Tstring // ok Tstring <-> Tbyte // was illegal, now ok Tstring <-> Trune // was illegal, now ok Update spec, compiler, tests. Use in a few packages. We agreed on this a few months ago but never implemented it. Fixes issue 1707. R=golang-dev, gri, r CC=golang-dev http://codereview.appspot.com/5421057
* cgo, goyacc, go/build, html, http, path, path/filepath, testing/quick, test: ↵Russ Cox2011-10-251-6/+6
| | | | | | | | | | use rune Nothing terribly interesting here. R=golang-dev, bradfitz, gri, r CC=golang-dev http://codereview.appspot.com/5300043
* delete float, complex - code changesRuss Cox2011-01-191-21/+23
| | | | | | | | | | | also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev http://codereview.appspot.com/3991043
* test: remove semiocolons.Rob Pike2010-09-041-20/+20
| | | | | | | | The ken directory is untouched so we have some examples with explicit semis. R=gri CC=golang-dev http://codereview.appspot.com/2157041
* gc: implement []int(string) and []byte(string)Russ Cox2010-02-251-0/+27
| | | | | | R=ken2 CC=golang-dev http://codereview.appspot.com/224060
* more 6g reorg; checkpoint.Russ Cox2009-08-031-5/+5
| | | | | | | | | typecheck.c is now responsible for all type checking except for assignment and function argument "..." R=ken OCL=32661 CL=32667
* update convlit.go to current specRuss Cox2009-05-051-7/+7
| | | | | | | R=r DELTA=17 (2 added, 9 deleted, 6 changed) OCL=28286 CL=28286
* make 6g constants behave as ken proposes. (i hope.)Russ Cox2009-03-121-3/+5
| | | | | | | | | | various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
* fix the easy parts of bug120Russ Cox2008-11-171-1/+1
| | | | | | | R=r,ken DELTA=66 (52 added, 3 deleted, 11 changed) OCL=19386 CL=19389
* Match gccgo error messages.Ian Lance Taylor2008-10-221-5/+5
| | | | | | | | | | | | | | | | convlit.go:17: error: incompatible type in initialization convlit.go:18: error: incompatible types in binary expression convlit.go:19: error: incompatible types in binary expression convlit.go:20: error: incompatible types in binary expression convlit.go:21: error: incompatible types in binary expression convlit.go:23: error: cannot convert non-integer constant convlit.go:24: error: integer type overflow convlit.go:25: error: floating point overflow R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=17649 CL=17661
* diagnose various conversion problemsRuss Cox2008-10-161-0/+35
R=ken OCL=17320 CL=17320