summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2010-02-01nacl: fix build, finally fixed 8l convergence bugRuss Cox2-3/+76
R=r CC=golang-dev http://codereview.appspot.com/199042
2010-02-01gc: ... T corner casesRuss Cox2-1/+67
more to come, but should suffice for Printf work. R=ken2 CC=golang-dev http://codereview.appspot.com/197044
2010-02-01gc: add ... T, rework plain ...Russ Cox4-0/+173
No longer a distinct type; now a property of func types. R=ken2 CC=golang-dev http://codereview.appspot.com/197042
2010-01-31Fix expected string.Ian Lance Taylor1-1/+12
I got it wrong because gccgo was incorrectly failing to clear the value when a nonblocking receive did not receive anything. R=rsc CC=golang-dev http://codereview.appspot.com/194161
2010-01-30Match gccgo error messages.Ian Lance Taylor1-7/+7
bug238.go:11:7: error: invalid constant type bug238.go:12:7: error: invalid constant type bug238.go:13:7: error: invalid constant type bug238.go:14:7: error: invalid constant type bug238.go:15:7: error: invalid constant type bug238.go:16:7: error: invalid constant type bug238.go:17:7: error: invalid constant type R=rsc CC=golang-dev http://codereview.appspot.com/194159
2010-01-30New gccgo error message; match both compilers with one string.Ian Lance Taylor1-1/+1
8g: runtime.go:19: cannot refer to unexported name runtime.printbool gccgo: runtime.go:19:10: error: invalid reference to unexported identifier ‘runtime.printbool’ R=rsc CC=golang-dev http://codereview.appspot.com/194157
2010-01-30Match gccgo error message.Ian Lance Taylor1-1/+1
bug231.go:20:4: error: incompatible types in assignment (type has no methods) R=rsc CC=golang-dev http://codereview.appspot.com/194156
2010-01-29Recognize gccgo error messages.Ian Lance Taylor1-2/+2
bug228.go:11:25: error: invalid use of ‘...’ bug228.go:13:13: error: ‘...’ only permits one name bug228.go:15:20: error: ‘...’ must be last parameter bug228.go:17:7: error: expected type bug228.go:19:8: error: expected type R=rsc CC=golang-dev http://codereview.appspot.com/196077
2010-01-28gc: tweak error messages, avoid internalization settings in bisonRuss Cox8-8/+8
R=r CC=golang-dev http://codereview.appspot.com/194129
2010-01-27gc: implement defer print/println/panic/paniclnRuss Cox2-0/+18
Fixes issue 219. R=ken2, r CC=golang-dev http://codereview.appspot.com/194097
2010-01-26gc: improved syntax errorsRuss Cox13-1/+146
* example-based syntax errors (go.errors) * enable bison's more specific errors and translate grammar token names into tokens like ++ * test cases R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/194085
2010-01-26gc: fix chan <- chan precedence.Russ Cox5-46/+135
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25channel types parsed not according to spec by 6gRobert Griesemer2-0/+46
R=r, rsc CC=golang-dev http://codereview.appspot.com/193101
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox7-1/+220
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-255l, 6l, 8l: accept only one object fileRuss Cox1-1/+1
(package main; others are pulled in automatically) R=ken2 CC=golang-dev http://codereview.appspot.com/194069
2010-01-24gc: bug247, reported by robRuss Cox1-0/+20
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-19Add explicit locking.Ian Lance Taylor1-7/+29
Since gcco runs goroutines in independent threads, it needs locking for the global variables. This shows up when I use ordinary increments rather than locked increments for var++. R=ken2, ken3 CC=golang-dev http://codereview.appspot.com/190074
2010-01-19gc: const debug bool = falseRuss Cox1-0/+3
R=ken2 CC=golang-dev http://codereview.appspot.com/186232
2010-01-18add bug246 (issue 492)Russ Cox2-0/+23
R=r CC=golang-dev http://codereview.appspot.com/186216
2010-01-18gc: bug245Russ Cox1-0/+16
Fixes issue 529. R=ken2 CC=golang-dev http://codereview.appspot.com/186215
2010-01-18gc: multiple return value at top-level invoked multiple timesRuss Cox1-0/+30
Fixes issue 402. R=ken2 CC=golang-dev http://codereview.appspot.com/186214
2010-01-18gc: bug243Russ Cox1-0/+28
Fixes issue 481. R=ken2 CC=golang-dev http://codereview.appspot.com/186213
2010-01-15Test order of evaluation in tuple assignments.Ian Lance Taylor2-0/+115
gccgo currently passes this test; 8g currently does not. I think I counted everything out right. R=rsc CC=golang-dev http://codereview.appspot.com/186165
2010-01-15Test evaluation of range variables.Ian Lance Taylor1-0/+34
R=rsc CC=golang-dev http://codereview.appspot.com/189088
2010-01-08gc: bug238Russ Cox3-34/+19
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2010-01-07gc: bug219, bug239, bug240Russ Cox3-1/+4
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2010-01-07gc: bug241Russ Cox1-0/+11
Fixes issue 495. R=ken2 CC=golang-dev http://codereview.appspot.com/183156
2010-01-06update timing logs for benchmarks.Rob Pike1-0/+84
some significant improvements: reverse-complement nbody (gccgo only) regex-dna pidigits one mysterious drop: binary-tree.go (gccgo only) R=rsc CC=golang-dev http://codereview.appspot.com/181158
2009-12-29Test case for issue 475 and related bug.Robert Griesemer3-0/+49
R=iant CC=golang-dev http://codereview.appspot.com/183087
2009-12-29test case for issue 471Robert Griesemer2-0/+22
R=iant CC=golang-dev http://codereview.appspot.com/183084
2009-12-23Add a test for issue 337.Ian Lance Taylor1-0/+25
gccgo currently miscompiles this test. R=rsc CC=golang-dev http://codereview.appspot.com/181050
2009-12-18More evaluation order tests, for global variables and switch.Ian Lance Taylor1-0/+53
gccgo currently fails this test. R=rsc CC=golang-dev http://codereview.appspot.com/179108
2009-12-18gc: method expressions on concrete typesRuss Cox2-2/+16
R=ken2 http://codereview.appspot.com/180092
2009-12-18runtime: fix race conditionAdam Langley2-0/+86
(Thanks to ken and rsc for pointing this out) rsc: ken pointed out that there's a race in the new one-lock-per-channel code. the issue is that if one goroutine has gone to sleep doing select { case <-c1: case <-c2: } and then two more goroutines try to send on c1 and c2 simultaneously, the way that the code makes sure only one wins is the selgen field manipulation in dequeue: // if sgp is stale, ignore it if(sgp->selgen != sgp->g->selgen) { //prints("INVALID PSEUDOG POINTER\n"); freesg(c, sgp); goto loop; } // invalidate any others sgp->g->selgen++; but because the global lock is gone both goroutines will be fiddling with sgp->g->selgen at the same time. This results in a 7% slowdown in the single threaded case for a ping-pong microbenchmark. Since the cas predominantly succeeds, adding a simple check first didn't make any difference. R=rsc CC=golang-dev http://codereview.appspot.com/180068
2009-12-17gc: fix compiler crashRuss Cox1-0/+17
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-15runtime: return zero value in x, ok = <-c when ok == falseRuss Cox1-0/+20
Fixes issue 401. R=ken2 http://codereview.appspot.com/180053
2009-12-15gc: fix import name resolutionRuss Cox1-0/+10
Fixes issue 403. R=ken2 http://codereview.appspot.com/180052
2009-12-15gc: bug fixes.Russ Cox3-0/+67
* better error for lookup of unexported field * do not assign "ideal string" type to typed string literal * do not confuse methods and fields during interface check Fixes issue 410. Fixes issue 411. Fixes issue 426. R=ken2 http://codereview.appspot.com/179069
2009-12-15gc: allow ... in method listsRuss Cox1-0/+8
R=ken2 http://codereview.appspot.com/179070
2009-12-151) Change default gofmt default settings forRobert Griesemer15-558/+558
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 5th and last set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180050
2009-12-15gc: double-check usage of ...Russ Cox1-0/+19
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-15gc: var x, ok = m[y]Russ Cox1-0/+34
Fixes issue 384. R=ken2 http://codereview.appspot.com/179061
2009-12-15Tweak test to work with both 6g and gccgo.Ian Lance Taylor1-3/+1
Pull the struct into a single line, since 6g reports the error on the last line of the struct definition and gccgo reports it on the first line. 6g: bug215.go:12: invalid recursive type A gccgo: bug215.go:12:6: error: invalid recursive type ‘A’ R=rsc http://codereview.appspot.com/180044
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-2/+5
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
2009-12-10trailing comma's are not accepted with current syntaxRobert Griesemer1-2/+1
R=rsc, ken2 http://codereview.appspot.com/174047
2009-12-10test/fixedbug: drop obsolete bug125, bug166Russ Cox2-28/+0
R=gri CC=golang-dev http://codereview.appspot.com/173044
2009-12-10make test/ken safe for optional semisRobert Griesemer32-394/+188
R=rsc, ken2, ken3 http://codereview.appspot.com/174042
2009-12-10make test/fixedbugs save for optional semisRobert Griesemer8-17/+13
R=rsc http://codereview.appspot.com/173045
2009-12-09missed a couple of files in testRobert Griesemer2-18/+27
R=rsc, r http://codereview.appspot.com/172045
2009-12-09making some more non-gofmt'ed files save for new semicolon ruleRobert Griesemer12-42/+39
R=rsc, r http://codereview.appspot.com/171051