summaryrefslogtreecommitdiff
path: root/test/closure.go
Commit message (Collapse)AuthorAgeFilesLines
* test: enforce 1 proc in the testDmitriy Vyukov2012-07-011-0/+1
| | | | | | | | | otherwise it fails spuriously with "newfunc allocated unexpectedly" message when run with GOMAXPROCS>1 (other goroutine allocates). R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/6347056
* test: [a-c]: add introductory comments to testsRob Pike2012-02-191-0/+2
| | | | | | | | | | | | 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
* runtime: delete UpdateMemStats, replace with ReadMemStats(&stats).R?my Oudompheng2012-02-061-5/+6
| | | | | | | | | | | | Unexports runtime.MemStats and rename MemStatsType to MemStats. The new accessor requires passing a pointer to a user-allocated MemStats structure. Fixes issue 2572. R=bradfitz, rsc, bradfitz, gustavo CC=golang-dev, remy http://codereview.appspot.com/5616072
* gc: test that asserts closures are not wrapped when they don't have closure ↵Luuk van Dijk2012-01-101-1/+18
| | | | | | | | vars. R=rsc, bradfitz CC=golang-dev http://codereview.appspot.com/5529060
* gc: remove func, map compareRuss Cox2011-11-131-5/+0
| | | | | | R=ken, ken CC=golang-dev http://codereview.appspot.com/5373079
* gc: issue 1231Russ Cox2010-12-131-0/+11
| | | | | | | | Fixes issue 1231. R=ken2 CC=golang-dev http://codereview.appspot.com/3627041
* delete all uses of panicln by rewriting them using panic or,Rob Pike2010-03-241-53/+54
| | | | | | | | | in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
* make every func literal expression allocate,Russ Cox2009-07-281-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | so that == on func means that the functions originated in the same execution of a func literal or definition. before, there was an inconsistency: func() {x++} != func() {x++} but func() {} == func() {} this CL makes the second case != too, just like make(map[int]int) != make(map[int]int) R=r DELTA=202 (71 added, 62 deleted, 69 changed) OCL=32393 CL=32398
* Automated g4 rollback of changelist 25024,Russ Cox2009-03-031-3/+3
| | | | | | | | | | plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
* convert composite literals from { } to ( ).Russ Cox2009-02-131-3/+3
| | | | | | | | | | only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
* closures - runtime and debugger support, test caseRuss Cox2009-02-061-0/+88
R=r DELTA=257 (250 added, 1 deleted, 6 changed) OCL=24509 CL=24565