summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2009-05-26bug151, bug152 -> fixedbugsRuss Cox2-0/+0
R=ken OCL=29425 CL=29427
2009-05-26and the golden fileKen Thompson1-9/+0
R=r OCL=29421 CL=29421
2009-05-26bug150 is fixedRob Pike2-6/+1
R=ken OCL=29407 CL=29407
2009-05-22another interface conversion testRuss Cox1-0/+25
R=r DELTA=21 (21 added, 0 deleted, 0 changed) OCL=29212 CL=29249
2009-05-22channel direction testsRuss Cox1-0/+48
(will submit with compiler fixes). R=r DELTA=44 (44 added, 0 deleted, 0 changed) OCL=29211 CL=29248
2009-05-21allow type name as key to accomodate anonymous fields.Russ Cox3-4/+8
update tests. R=ken OCL=29207 CL=29207
2009-05-21tests for new initializer syntaxRuss Cox2-0/+87
R=r DELTA=79 (79 added, 0 deleted, 0 changed) OCL=29196 CL=29202
2009-05-21stricter rules for assignment.Russ Cox1-0/+33
when assigning a multifield object (structs or arrays of structs) they must not contain any fields that could not be assigned individually. R=ken OCL=29192 CL=29194
2009-05-21add test for yesterday's interface rule change (interface/convert1.go).Russ Cox15-21/+48
move interface tests to subdirectory. R=r DELTA=1632 (827 added, 804 deleted, 1 changed) OCL=29181 CL=29191
2009-05-20change representation of interface values.Russ Cox1-1/+1
this is not a user-visible change. before, all interface values were struct Itype { Sigt *type; Sigi *inter; void *method[n]; } struct Iface { void *addr; Itype *itype; } the itype is basically a vtable, but it's unnecessary if the static type is interface{ }. for interface values with static type empty, the new representation is struct Eface { void *addr; Sigt *type; } this complicates the code somewhat, but it reduces the number of Itypes that have to be computed and cached, it opens up opportunities to avoid function calls in a few common cases, and it will make it possible to lay out interface{} values at compile time, which i think i'll need for the new reflection. R=ken OCL=28701 CL=29121
2009-05-19Match gccgo error messages.Ian Lance Taylor3-5/+5
bug117.go:13:12: error: reference to undefined field or method import1.go:9:2: error: redefinition of '.main.bufio' import1.go:8:2: note: previous definition of '.main.bufio' was here import1.go:9:2: error: incompatible imported type 'bufio.Error' interface9.go:25:5: error: incompatible types in assignment (method P requires a pointer) interface9.go:30:5: error: incompatible types in assignment (method P requires a pointer) R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=29044 CL=29055
2009-05-16Don't bother to import "os" just so that we can callIan Lance Taylor2-6/+0
os.Exit(0) at the end of main. R=rsc DELTA=6 (0 added, 6 deleted, 0 changed) OCL=28967 CL=28969
2009-05-15bug152: literal []slice{ } as range expressionRuss Cox2-1/+21
R=ken OCL=28918 CL=28918
2009-05-14A comparison of two values with a type equivalent to stringIan Lance Taylor2-0/+27
gives an type mismatch error, although both values appear to have the same type. R=ken,rsc DELTA=23 (23 added, 0 deleted, 0 changed) OCL=28786 CL=28805
2009-05-13bug150Russ Cox2-0/+27
R=ken OCL=28785 CL=28785
2009-05-12describe each interface testRuss Cox9-0/+20
R=r DELTA=20 (20 added, 0 deleted, 0 changed) OCL=28707 CL=28716
2009-05-12update reflect for upcoming interface representation change.Russ Cox2-3/+141
test case for new change. both work with the current compiler too. R=r DELTA=150 (145 added, 2 deleted, 3 changed) OCL=28703 CL=28715
2009-05-11change utf8.FullRuneInString and utf8.DecodeRuneInStringRuss Cox2-2/+2
to use single string argument instead of string, index. R=r DELTA=136 (9 added, 7 deleted, 120 changed) OCL=28642 CL=28644
2009-05-08check for redeclaration of package nameRuss Cox1-0/+14
R=r DELTA=10 (10 added, 0 deleted, 0 changed) OCL=28585 CL=28591
2009-05-08implications of stricter type equality:Russ Cox4-6/+27
if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577
2009-05-08move things out of sys into os and runtimeRuss Cox27-45/+92
R=r OCL=28569 CL=28573
2009-05-08Move sys.Reflect and sys.Unreflect into unsafe.Rob Pike1-1/+1
R=rsc DELTA=19 (4 added, 5 deleted, 10 changed) OCL=28563 CL=28566
2009-05-08conversion bugRobert Griesemer2-0/+28
R=r DELTA=24 (24 added, 0 deleted, 0 changed) OCL=28451 CL=28508
2009-05-07test of struct with embedded interface.Russ Cox1-0/+78
also tests method calls on ptr to interface value. R=r DELTA=74 (74 added, 0 deleted, 0 changed) OCL=28419 CL=28424
2009-05-076g: error messagesRuss Cox1-0/+5
replace "shape error across CALL" with more information. x.go:7: not enough arguments to CALL a int, b int int x.go:10: assignment count mismatch: 3 = 2 x.go:12: too many arguments to RETURN [no arguments expected] int, int, int also leave type alone after conversion failure, for later errors: bug049.go:6: cannot convert nil constant to string bug049.go:6: illegal types for operand: EQ string nil # this used to be blank R=ken OCL=28405 CL=28407
2009-05-06interface method testsRuss Cox2-0/+142
R=r DELTA=134 (134 added, 0 deleted, 0 changed) OCL=28373 CL=28380
2009-05-06added a distinguishing string to the error printsKen Thompson1-31/+58
R=r OCL=28321 CL=28357
2009-05-05signs on div and modKen Thompson1-0/+184
R=r OCL=28319 CL=28319
2009-05-05wrong type used for dynamic type testRobert Griesemer2-0/+44
R=r DELTA=40 (40 added, 0 deleted, 0 changed) OCL=28308 CL=28311
2009-05-05bug117 is fixed in 6g; now an errchkRuss Cox2-7/+5
R=r DELTA=42 (20 added, 22 deleted, 0 changed) OCL=28295 CL=28295
2009-05-05update convlit.go to current specRuss Cox2-16/+7
R=r DELTA=17 (2 added, 9 deleted, 6 changed) OCL=28286 CL=28286
2009-05-02Verify that a send on a sychronous channel waits until theIan Lance Taylor1-0/+22
value has been received. This failed with gccgo before today. R=ken,r DELTA=18 (18 added, 0 deleted, 0 changed) OCL=28185 CL=28190
2009-04-30bug146: array/slice conversion before I left missed conversionsRuss Cox2-7/+0
R=ken OCL=28120 CL=28124
2009-04-29Conversion from array to slices should work like assignment:Ian Lance Taylor2-0/+21
you should be able to convert a pointer to an array to a slice, you should not be able to convert an array to a slice. Currently 6g works the other way around. R=ken,rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=28033 CL=28067
2009-04-28bug 139Ken Thompson2-5/+0
R=r OCL=27987 CL=27987
2009-04-28bug131 has been fixed with no changeKen Thompson2-5/+5
R=r OCL=27980 CL=27980
2009-04-28bug 145Ken Thompson2-4/+0
R=r OCL=27979 CL=27979
2009-04-28Recognize gcco error messages.Ian Lance Taylor1-10/+10
declbad.go:15:3: error: variables redeclared but no variable is new declbad.go:20:3: error: redefinition of 'f' declbad.go:19:3: note: previous definition of 'f' was here declbad.go:25:3: error: redefinition of 'i' declbad.go:24:3: note: previous definition of 'i' was here declbad.go:30:3: error: variables redeclared but no variable is new declbad.go:35:3: error: redefinition of 'i' declbad.go:34:3: note: previous definition of 'i' was here declbad.go:40:3: error: variables redeclared but no variable is new declbad.go:45:3: error: variables redeclared but no variable is new R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=27934 CL=27957
2009-04-25cannot declare a variable in new scope with same name as type in outer scopeRobert Griesemer2-0/+21
(same as bug144.go but for types instead of constants) TBR=ken DELTA=17 (17 added, 0 deleted, 0 changed) OCL=27855 CL=27855
2009-04-24recognize a defined constantKen Thompson2-8/+0
as a new name in a later declaration (bug 144) R=r OCL=27850 CL=27850
2009-04-23- cannot declare local variable named like a constant in outer scopeRobert Griesemer2-0/+29
- submitted per discussion w/ ken TBR=ken DELTA=25 (25 added, 0 deleted, 0 changed) OCL=27824 CL=27826
2009-04-21Extend fixedbugs/bug143.go with function return values,David Symonds1-1/+14
as a regression test for the fix made in s2/27706. R=r APPROVED=r DELTA=14 (13 added, 0 deleted, 1 changed) OCL=27707 CL=27709
2009-04-21bug143 is fixedRob Pike2-6/+0
R=dsymonds DELTA=58 (26 added, 32 deleted, 0 changed) OCL=27698 CL=27698
2009-04-21update golden for bug 143Rob Pike1-0/+6
R=dsymonds DELTA=6 (6 added, 0 deleted, 0 changed) OCL=27654 CL=27654
2009-04-20Add bug143 to demonstrate bug with "v, ok :=" on pointers to maps.David Symonds1-0/+30
R=r APPROVED=r DELTA=26 (26 added, 0 deleted, 0 changed) OCL=27651 CL=27651
2009-04-20missing '}' (found by pretty)Robert Griesemer1-0/+1
R=r DELTA=1 (1 added, 0 deleted, 0 changed) OCL=27633 CL=27639
2009-04-19typo in messageRob Pike1-1/+1
R=ken OCL=27621 CL=27621
2009-04-19add another test to decl to see that result vars are redeclarable.Rob Pike1-0/+8
R=ken OCL=27620 CL=27620
2009-04-18tests for redeclaration in :=Rob Pike2-0/+79
R=ken DELTA=71 (71 added, 0 deleted, 0 changed) OCL=27616 CL=27616
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike1-1/+1
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586