summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2009-04-16make string take []byte only, so have to use *[10]byte to convertRuss Cox2-4/+4
R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=27578 CL=27584
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox2-2/+2
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-15code changes for array conversion.Russ Cox4-7/+7
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
2009-04-13fix stringrange testRuss Cox2-5/+15
R=ken OCL=27353 CL=27353
2009-04-12fix string range to have full unicode range (up to 10FFFF).Rob Pike2-0/+51
add test for string range. test has minor failure: after loop the index == len(s); should be len(s)-1 in this case. according to spec, vars are left at position at last iteration. R=ken,rsc DELTA=259 (161 added, 96 deleted, 2 changed) OCL=27343 CL=27343
2009-04-10bug142 is fixedRob Pike2-5/+0
R=rsc OCL=27331 CL=27331
2009-04-10test for new string bugRuss Cox1-0/+5
TBR=r OCL=27306 CL=27306
2009-04-08messages changed; updated golden.out for bug037Rob Pike1-0/+1
R=rsc OCL=27248 CL=27248
2009-04-07bug142Russ Cox2-0/+36
R=ken OCL=27202 CL=27202
2009-04-07func f() (int, int);Russ Cox1-2/+4
x := f(); used to give fatal error: dowidth fn struct struct { int; int } now gives assignment count mismatch: 1 = 2 R=ken OCL=27198 CL=27201
2009-04-07not a bug by current understanding, so delete this file.Rob Pike2-23/+0
6g says: bug138.go:8: constant -1 overflows uint gccgo says: bug138.go:8:16: error: integer constant overflow R=rsc DELTA=19 (0 added, 19 deleted, 0 changed) OCL=27099 CL=27149
2009-03-31test for and fix bug involving reflect v.Interface() and ==.Russ Cox1-0/+94
R=r DELTA=156 (149 added, 2 deleted, 5 changed) OCL=26973 CL=26973
2009-03-30tests changed - throw calls panic directly nowRuss Cox1-21/+7
instead of dereferencing nil, so no more SIGSEGVs. R=r DELTA=28 (0 added, 14 deleted, 14 changed) OCL=26881 CL=26881
2009-03-24goldenKen Thompson1-4/+0
R=r OCL=26699 CL=26699
2009-03-24^ type(const) now inverts "enough" bitsKen Thompson2-1/+1
^ signed(const) becomes illegal ^ unsigned(const) becomes legal R=r OCL=26697 CL=26697
2009-03-23add test for close/closed, fix a few implementation bugs.Russ Cox1-0/+197
R=ken OCL=26664 CL=26664
2009-03-23allow range on nil mapsRuss Cox1-0/+6
R=ken OCL=26663 CL=26663
2009-03-22bug141 is fixedRob Pike2-4/+0
R=ken DELTA=56 (26 added, 30 deleted, 0 changed) OCL=26628 CL=26628
2009-03-20Test that interfaces work in type switches.Ian Lance Taylor2-0/+34
R=ken,rsc DELTA=30 (30 added, 0 deleted, 0 changed) OCL=26599 CL=26604
2009-03-20range over channels.Russ Cox2-3/+62
also fix multiple-evaluation bug in range over arrays. R=ken OCL=26576 CL=26576
2009-03-20Match gccgo error messages.Ian Lance Taylor1-2/+2
bug090.go:41:6: error: floating point constant truncated to integer bug090.go:32:6: error: floating point constant truncated to integer bug090.go:34:14: error: floating point constant truncated to integer bug090.go:37:5: error: incompatible types in assignment bug090.go:40:5: error: incompatible types in assignment R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=26564 CL=26574
2009-03-19Modify error regexps to match gccgo error messages.Ian Lance Taylor1-34/+34
const1.go:23:13: error: integer constant overflow const1.go:25:13: error: integer constant overflow const1.go:26:14: error: integer constant overflow const1.go:27:18: error: integer constant overflow const1.go:28:19: error: integer constant overflow const1.go:29:16: error: integer constant overflow const1.go:29:25: error: integer constant overflow const1.go:30:13: error: integer constant overflow const1.go:33:14: error: integer constant overflow const1.go:34:14: error: integer constant overflow const1.go:36:22: error: integer constant overflow const1.go:37:7: error: integer constant overflow const1.go:38:8: error: integer constant overflow const1.go:39:7: error: integer constant overflow const1.go:40:7: error: integer constant overflow const1.go:41:8: error: integer constant overflow const1.go:44:23: error: integer constant overflow const1.go:46:13: error: integer constant overflow const1.go:47:24: error: integer constant overflow const1.go:48:24: error: integer constant overflow const1.go:49:22: error: integer constant overflow const1.go:51:23: error: integer constant overflow const1.go:52:19: error: division by zero const1.go:58:11: error: division by zero const1.go:43:17: error: integer constant overflow const1.go:45:13: error: integer constant overflow const1.go:55:19: error: floating point overflow const1.go:56:28: error: floating point overflow const1.go:57:11: error: floating point overflow const1.go:64:2: error: argument 0 has wrong type const1.go:65:2: error: argument 0 has wrong type const1.go:66:2: error: argument 0 has wrong type const1.go:68:2: error: argument 0 has wrong type const1.go:69:2: error: argument 0 has wrong type const1.go:70:4: error: floating point constant truncated to integer const1.go:72:2: error: argument 0 has wrong type const1.go:73:2: error: argument 0 has wrong type const1.go:74:2: error: argument 0 has wrong type R=rsc DELTA=34 (0 added, 0 deleted, 34 changed) OCL=26560 CL=26560
2009-03-18simplify test to eliminate now-deprecated forms of switch.Rob Pike1-76/+13
R=rsc DELTA=76 (0 added, 63 deleted, 13 changed) OCL=26439 CL=26490
2009-03-18remove assignment cases from switchKen Thompson1-48/+48
R=r OCL=26480 CL=26480
2009-03-17add value checks to the other switch - should have done this in prior roundRob Pike1-9/+9
R=rsc OCL=26438 CL=26438
2009-03-17add test for type switchesRob Pike1-0/+173
R=rsc DELTA=169 (169 added, 0 deleted, 0 changed) OCL=26433 CL=26437
2009-03-16Recognize gccgo error message.Ian Lance Taylor1-1/+1
const2.go:7:9: error: expected '=' Uses '.' to recognize the quotation marks, as the actual characters printed depend on the user's locale. R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=26360 CL=26373
2009-03-16Don't try to define the same label twice, as that produces aIan Lance Taylor2-6/+6
label redefinition error. R=gri DELTA=6 (0 added, 0 deleted, 6 changed) OCL=26357 CL=26372
2009-03-16spec and implementation disagree with respect to label declarationsRobert Griesemer2-0/+23
R=rsc DELTA=19 (19 added, 0 deleted, 0 changed) OCL=26284 CL=26336
2009-03-13internal compiler errorRobert Griesemer2-0/+22
R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=26266 CL=26266
2009-03-12warn -> yyerror in mparith.Russ Cox3-9/+2
close two more bugs. R=ken OCL=26226 CL=26226
2009-03-12make 6g constants behave as ken proposes. (i hope.)Russ Cox10-40/+210
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
2009-03-11bug 125Ken Thompson2-3/+3
R=r OCL=26146 CL=26146
2009-03-11bug 137Ken Thompson2-5/+0
R=r OCL=26142 CL=26142
2009-03-11complain when trying to put T into an interfaceRuss Cox3-23/+19
if T has pointer methods. this is just a heuristic but it catches the problem robert ran into and lets me put the larger interface issues aside for now. found one bug in pretty. R=ken OCL=26141 CL=26141
2009-03-10bug086Ken Thompson2-5/+0
R=r OCL=26090 CL=26090
2009-03-10constant conversion of int (non-ideal) constant doesn't workRobert Griesemer2-0/+24
R=rsc DELTA=20 (20 added, 0 deleted, 0 changed) OCL=26054 CL=26062
2009-03-06delete vestigial references to package syscallRob Pike1-2/+2
R=rsc DELTA=8 (0 added, 5 deleted, 3 changed) OCL=25857 CL=25861
2009-03-05bug085 bug129Russ Cox3-11/+1
R=ken OCL=25787 CL=25791
2009-03-03update missed test case to {}Rob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=25648 CL=25654
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox29-84/+85
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-25bug130 is fixedRob Pike2-4/+0
R=ken OCL=25448 CL=25448
2009-02-18allow parens to disambiguate types.Russ Cox1-0/+17
examples: chan <- (chan int) chan (<- chan int) (map[string]func())("a": main) R=ken OCL=25151 CL=25151
2009-02-16bug123Russ Cox2-4/+1
R=ken OCL=25075 CL=25075
2009-02-13- vector package (identical to array except for names)Robert Griesemer1-3/+3
- updated some file (but not all - left array package in place for now) R=rsc DELTA=530 (483 added, 0 deleted, 47 changed) OCL=25025 CL=25025
2009-02-13convert composite literals from { } to ( ).Russ Cox27-83/+81
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-13label declarations not handled properlyRobert Griesemer2-0/+31
R=rsc DELTA=27 (27 added, 0 deleted, 0 changed) OCL=25015 CL=25015
2009-02-11insert type assertions when narrowing.Russ Cox10-34/+42
R=r OCL=24349 CL=24913
2009-02-06bug: empty statement not properly recognized in conjunction w/ labelsRobert Griesemer2-0/+18
R=r DELTA=14 (14 added, 0 deleted, 0 changed) OCL=24610 CL=24610
2009-02-06Recognize gccgo error messages:Ian Lance Taylor1-2/+2
func4.go:8:11: error: invalid operand for unary '&' func4.go:9:8: error: invalid left hand side of assignment R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=24294 CL=24603