summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2009-08-24Match gccgo error messages.Ian Lance Taylor1-2/+2
bug192.go:11:5: error: redefinition of ‘fmt’ bug192.go:9:8: note: previous definition of ‘fmt’ was here R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33780 CL=33790
2009-08-24bug197Russ Cox1-0/+33
R=ken OCL=33765 CL=33765
2009-08-24bug189Russ Cox2-4/+1
R=ken OCL=33745 CL=33745
2009-08-23half of bug193Russ Cox1-3/+1
R=ken OCL=33730 CL=33730
2009-08-21more interface embedding testsRuss Cox1-0/+15
6g's error for I4 is not quite accurate (it calls I4 a non-interface) but also not a crash or infinite loop. R=iant DELTA=15 (15 added, 0 deleted, 0 changed) OCL=33701 CL=33709
2009-08-21fix bug195Russ Cox2-3/+0
R=ken OCL=33700 CL=33700
2009-08-21fix crash in bug194; add bug196Russ Cox2-1/+55
R=ken OCL=33694 CL=33697
2009-08-21A test for an interface which uses a forward declared typeIan Lance Taylor2-0/+15
which turns out to be invalid. R=rsc DELTA=15 (15 added, 0 deleted, 0 changed) OCL=33691 CL=33693
2009-08-21If the compiler dumps core, bash will print a useless errorIan Lance Taylor1-3/+13
message with the full path of the errchk script. Catch that by wrapping the if statement which invokes the compiler in a subshell. Use the $TMPOUT file as a flag to let the main shell know whether the subshell ran. Since the compiler stdout and stderr are redirected, if the if statement produces any output, then the compiler crashed, and we report that. R=r,rsc DELTA=14 (11 added, 1 deleted, 2 changed) OCL=33690 CL=33692
2009-08-21Test composite literals with undeclared types. This crashedIan Lance Taylor2-0/+36
gccgo in a few different places, and crashes 6g as of this writing. Note that the index in a composite literal must be looked up in a different namespace if the composite literal type turns out to be a struct. R=rsc DELTA=36 (36 added, 0 deleted, 0 changed) OCL=33681 CL=33685
2009-08-21Enable these tests. Fix divconst.go and modconst.go toIan Lance Taylor3-7/+2
compile with the current compiler. Adjust expected error message in method1.go to match 6g output. R=rsc DELTA=9 (2 added, 5 deleted, 2 changed) OCL=33674 CL=33682
2009-08-21unexpected shift conversion behaviorRobert Griesemer2-0/+20
R=r DELTA=20 (20 added, 0 deleted, 0 changed) OCL=33646 CL=33667
2009-08-20fix buildRuss Cox1-1/+0
TBR=r OCL=33623 CL=33623
2009-08-20len and cap on chansRuss Cox1-0/+27
R=ken OCL=33599 CL=33599
2009-08-19add bug to capture double declaration of name in file and package blockRob Pike2-0/+12
R=rsc DELTA=12 (12 added, 0 deleted, 0 changed) OCL=33554 CL=33563
2009-08-19produce diagnostic forRuss Cox1-6/+6
import "fmt" var fmt = 1 R=ken OCL=33556 CL=33561
2009-08-19try to do better line number reportingRuss Cox1-3/+6
in the presence of yacc lookahead. better but still not perfect R=ken OCL=33541 CL=33541
2009-08-19With the changes to support automatic forward declarations ofIan Lance Taylor1-10/+10
type names, gccgo no longer reports redefinition errors for :=, because it no longer knows at parse time whether the type has changed. Adjust this test to not match "redefinition", and to instead match gccgo's current output. declbad.go:19:3: error: variables redeclared but no variable is new declbad.go:34:3: error: variables redeclared but no variable is new declbad.go:39:3: error: variables redeclared but no variable is new declbad.go:44:3: error: variables redeclared but no variable is new declbad.go:49:3: error: variables redeclared but no variable is new declbad.go:24:3: error: incompatible types in assignment declbad.go:29:3: error: incompatible types in assignment declbad.go:39:3: error: incompatible types in assignment R=rsc DELTA=10 (0 added, 0 deleted, 10 changed) OCL=33537 CL=33539
2009-08-19fix import dot bugRuss Cox3-0/+31
R=ken OCL=33526 CL=33528
2009-08-17Test that a type can refer to itself recursively as long as itIan Lance Taylor2-0/+35
does so in ways that permit its size to be known. R=rsc DELTA=35 (35 added, 0 deleted, 0 changed) OCL=33427 CL=33433
2009-08-17Match gccgo error messages.Ian Lance Taylor2-2/+2
bug165.go:13:6: error: invalid recursive type 'S' This is a different line from the 6g error message, which is "invalid map key type". I accomodated both compilers by merging the line. bug188.go:13:2: error: unexpected reference to package I made the error message less specific, which I think is fine here. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33398 CL=33426
2009-08-17fix a couple of scriptsRob Pike1-2/+1
R=rsc DELTA=6 (4 added, 2 deleted, 0 changed) OCL=33400 CL=33400
2009-08-17fix up some irregular indentationRob Pike39-316/+317
R=rsc OCL=33382 CL=33391
2009-08-146g bug: struct initializers must provide all field values unless the fields ↵Robert Griesemer2-0/+20
are named R=rsc,r DELTA=16 (16 added, 0 deleted, 0 changed) OCL=33292 CL=33303
2009-08-13Recognize gccgo error messages.Ian Lance Taylor12-15/+15
bug039.go:6:7: error: redefinition of 'x' bug039.go:5:1: note: previous definition of 'x' was here bug049.go:6:9: error: incompatible types in binary expression bug062.go:6:7: error: incompatible type in initialization bug086.go:5:1: error: control reaches end of non-void function bug103.go:8:2: error: variable has no type bug121.go:9:2: error: expected signature or type name bug131.go:7:7: error: incompatible type in initialization bug165.go:10:8: error: expected complete type bug171.go:5:1: error: control reaches end of non-void function bug171.go:6:1: error: control reaches end of non-void function bug172.go:7:6: error: expected integer type bug182.go:7:2: error: if statement expects boolean expression bug183.go:10:5: error: incompatible types in assignment bug183.go:19:5: error: incompatible types in assignment R=rsc DELTA=15 (0 added, 0 deleted, 15 changed) OCL=33168 CL=33175
2009-08-12bug188 - sort(x)Russ Cox2-2/+16
R=ken OCL=33123 CL=33123
2009-08-12fix bug187 not to crashRuss Cox2-5/+5
TBR=austin DELTA=9 (4 added, 4 deleted, 1 changed) OCL=33115 CL=33115
2009-08-12delete forward type declarationsRuss Cox4-15/+0
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
2009-08-12Bug involving ... initializers and interface values.Austin Clements2-0/+26
R=rsc APPROVED=rsc DELTA=22 (22 added, 0 deleted, 0 changed) OCL=33053 CL=33104
2009-08-12convert non-pkg go files to whole-package compilation.Russ Cox11-77/+6
mostly removing forward declarations. R=r DELTA=138 (2 added, 127 deleted, 9 changed) OCL=33068 CL=33099
2009-08-11bug186 - f(iota)Russ Cox1-0/+18
R=ken OCL=33051 CL=33051
2009-08-10- use in-place bignum operations where availableRobert Griesemer2-14/+22
- runs approx. 30% faster R=r DELTA=24 (10 added, 2 deleted, 12 changed) OCL=32984 CL=33005
2009-08-10new timing data after compiler updates (fp regs, integer div and mod)Rob Pike1-0/+90
R=rsc DELTA=90 (90 added, 0 deleted, 0 changed) OCL=32993 CL=33001
2009-08-108-bit div and modRuss Cox2-0/+220
R=ken OCL=32975 CL=32975
2009-08-09Partially fix build: don't assume . is in PATH.David Symonds1-0/+1
APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=32948 CL=32948
2009-08-09run benchmarks in a relatively fast test mode, as part of run.bash/all.bashRob Pike10-69/+289
R=rsc DELTA=293 (224 added, 0 deleted, 69 changed) OCL=32917 CL=32944
2009-08-08another plateau - almost doneKen Thompson2-20/+717
only need to fix up certain denominators R=rsc OCL=32928 CL=32928
2009-08-07bug159Russ Cox3-18/+13
R=ken OCL=32902 CL=32914
2009-08-07chameneosRob Pike5-1/+572
R=rsc DELTA=514 (513 added, 0 deleted, 1 changed) OCL=32898 CL=32910
2009-08-07bug185 - return b,a from func() (a,b int)Russ Cox1-0/+33
R=ken OCL=32900 CL=32900
2009-08-07annotationsRuss Cox1-0/+14
TBR=r OCL=32896 CL=32896
2009-08-07bug184 - assignment compatibility in unpacked multireturnRuss Cox1-0/+51
R=ken OCL=32890 CL=32894
2009-08-07simplify threadring slightly; slight speed improvementRob Pike2-7/+7
R=rsc DELTA=7 (3 added, 3 deleted, 1 changed) OCL=32885 CL=32889
2009-08-07bug183 - embedded vs non-embedded struct field in eqtypeRuss Cox1-0/+25
R=ken OCL=32888 CL=32888
2009-08-07bug182 - compiler crashRuss Cox1-0/+13
R=ken OCL=32887 CL=32887
2009-08-07bug181 - type T *struct { T } is an invalid embedded typeRuss Cox1-0/+11
R=ken OCL=32886 CL=32886
2009-08-07clean up a few error messages;Russ Cox1-1/+1
disable func redeclaration mismatch test; fix golden.out R=ken OCL=32883 CL=32883
2009-08-07threadringRob Pike5-1/+190
more interesting than most R=rsc DELTA=132 (131 added, 0 deleted, 1 changed) OCL=32876 CL=32881
2009-08-07timing updates after 6g change for efficient division by powers of twoRob Pike3-2/+25
R=rsc DELTA=25 (23 added, 0 deleted, 2 changed) OCL=32873 CL=32875
2009-08-06divide by a constant power of 2Ken Thompson1-0/+45
R=rsc OCL=32858 CL=32858