summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2008-11-17floating point constant errors in 6gRuss Cox1-0/+39
R=r OCL=19379 CL=19379
2008-11-17The scope rules have been clarified to indicate that aIan Lance Taylor3-49/+20
variable may only be named after the complete declaration, including the initialization statements. R=gri DELTA=61 (16 added, 45 deleted, 0 changed) OCL=19343 CL=19376
2008-11-17adopt suggestions from Bentley and McIlroy (SP&E Nov 1993)Russ Cox1-30/+195
to make qsort more robust: * use "ninther" to choose pivot. * use three-way partition to avoid quadratic behavior on all-one-value arrays. also add tests suggested in that paper. the immediate cause of the slowness we observed was in fact none of these: the recursive call was sorting data[0:m] instead of data[a:m]. also rename package to "sort" to match convention. R=r,gri DELTA=358 (255 added, 21 deleted, 82 changed) OCL=19341 CL=19373
2008-11-14The compilers should and do permit interface types to listIan Lance Taylor2-14/+0
multiple method names with a single type. R=r,gri DELTA=10 (0 added, 10 deleted, 0 changed) OCL=19292 CL=19298
2008-11-13* 6l:Russ Cox1-3/+7
if an object in an archive tries to refer to a file in its original source directory, ignore it. * 6ar: fix bug if archive is empty. * gobuild: build archive in current directory. * math: use new gobuild Makefile. * test/math.go: rename to mathest.go, add // run line, make it run. R=r DELTA=494 (277 added, 203 deleted, 14 changed) OCL=19090 CL=19171
2008-11-12This bug has been fixed; moving it from bugs to fixedbugs.Ian Lance Taylor4-3/+3
R=gri DELTA=36 (18 added, 18 deleted, 0 changed) OCL=19059 CL=19133
2008-11-12wrong code for array accessRobert Griesemer1-0/+32
R=r OCL=19107 CL=19109
2008-11-11Recognize gccgo error messages. This uses GCCGO_ERROR, whichIan Lance Taylor1-5/+5
is recognized by the gccgo testsuite but is ignored by the errchk script used with 6g. method1.go:7:1: error: redefinition of 'M': parameter types changed method1.go:6:1: note: previous definition of 'M' was here method1.go:10:1: error: redefinition of 'f': parameter types changed method1.go:9:1: note: previous definition of 'f' was here method1.go:13:1: error: redefinition of 'g': parameter names changed method1.go:12:1: note: previous definition of 'g' was here R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=18962 CL=19058
2008-11-11The scope rules have been changed to say that labels live in aIan Lance Taylor2-9/+1
separate per-function namespace. R=gri DELTA=24 (8 added, 16 deleted, 0 changed) OCL=19006 CL=19057
2008-11-11Remove useless "Trace/breakpoint trap" lines using the formatIan Lance Taylor1-1/+2
that is generated on Goobuntu. R=r,rsc DELTA=2 (1 added, 0 deleted, 1 changed) OCL=18973 CL=18976
2008-11-10update testsRob Pike2-5/+3
R=gri DELTA=28 (12 added, 14 deleted, 2 changed) OCL=18923 CL=18923
2008-11-07Don't use a type guard with a type which is not an interface.Ian Lance Taylor2-2/+2
R=r,gri DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18781 CL=18785
2008-11-06Test case for evaluation order of select statement.Ian Lance Taylor1-0/+51
R=r DELTA=47 (47 added, 0 deleted, 0 changed) OCL=18581 CL=18748
2008-11-06Erroneous test case. The break statement should break out ofIan Lance Taylor2-24/+0
a select clause. R=ken DELTA=20 (0 added, 20 deleted, 0 changed) OCL=18731 CL=18739
2008-11-06simpleminded ascii to floating point conversionRob Pike1-0/+5
R=rsc DELTA=111 (107 added, 0 deleted, 4 changed) OCL=18720 CL=18725
2008-11-06Test that a break statement inside a select statement breaksIan Lance Taylor2-0/+24
out of the enclosing loop. R=ken DELTA=20 (20 added, 0 deleted, 0 changed) OCL=18686 CL=18714
2008-11-06A recreational programming exercise:Robert Griesemer1-0/+167
Multiplication of a Hilbert matrix with its inverse using Bignum.Rationals as a test case for rational arithmetic. R=r OCL=18706 CL=18706
2008-11-06- implemented String() and Format functionality in BignumRobert Griesemer1-18/+24
- added a test R=r OCL=18687 CL=18687
2008-11-056g dumps core on this input file.Ian Lance Taylor2-0/+18
R=ken,rsc DELTA=14 (14 added, 0 deleted, 0 changed) OCL=18555 CL=18598
2008-11-05Fix powser1.go to compile with the current 6g, which doesn'tIan Lance Taylor3-2/+29
recognize methods for a variable whose type is a named type which is a pointer type. Add bug117 to test this case. R=r DELTA=24 (22 added, 0 deleted, 2 changed) OCL=18547 CL=18554
2008-11-05Don't use a named pointer type as a receiver type. TheIan Lance Taylor1-2/+2
current spec forbids it: The type specified by the type name is called ``receiver base type''. The receiver base type must be a type declared in the current file, and it must not be a pointer type. R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18527 CL=18541
2008-11-04update golden.outRob Pike2-5/+0
R=rsc OCL=18482 CL=18484
2008-11-04install bignum as libraryRobert Griesemer1-0/+496
R=r DELTA=3501 (1752 added, 1749 deleted, 0 changed) OCL=18460 CL=18471
2008-11-04move invalid method uses to new testRuss Cox3-11/+18
R=iant DELTA=24 (13 added, 10 deleted, 1 changed) OCL=18424 CL=18439
2008-11-03fixed testsRuss Cox2-0/+0
R=r DELTA=124 (62 added, 62 deleted, 0 changed) OCL=18389 CL=18394
2008-11-03rename various magic names.Russ Cox1-2/+2
sigi and sigt: sys·sigi_inter -> sigi·inter sys·sigt_int -> sigt·int Package·sigt_Type -> sigt·Package.Type local type T in file x.go T_x -> T·x second one T_x_1 -> T·x·1 method names M on T T_M -> T·M correctly handle local embedded types init functions are the only place left that use underscores R=ken OCL=18377 CL=18377
2008-10-31Recognize gccgo error message:Ian Lance Taylor1-1/+1
interface1.go:29:6: error: incompatible type in initialization (missing method Next) R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=18183 CL=18271
2008-10-30update testsRob Pike4-28/+9
R=rsc DELTA=159 (65 added, 84 deleted, 10 changed) OCL=18149 CL=18151
2008-10-30make sure errchk only prints BUG once.Russ Cox1-5/+6
using a variable is not sufficient, because sometimes bug() is called from a subshell. R=iant DELTA=7 (2 added, 1 deleted, 4 changed) OCL=18092 CL=18145
2008-10-29apply change suggested in CL 16658 reviewRuss Cox1-1/+1
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18091 CL=18094
2008-10-29bugs from old gri mailRuss Cox3-0/+64
R=gri OCL=18093 CL=18093
2008-10-29Call the right function for int32 values.Ian Lance Taylor1-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18073 CL=18073
2008-10-29update Fmt interface: d=int, ud=uint, d32=int32, d64=int64, etc.Russ Cox1-34/+37
R=r DELTA=202 (60 added, 24 deleted, 118 changed) OCL=18029 CL=18038
2008-10-29more simple test fixesRuss Cox2-12/+2
R=r OCL=18035 CL=18035
2008-10-29typesKen Thompson2-8/+9
R=r OCL=18034 CL=18034
2008-10-29update golden.out with new type namesRuss Cox1-22/+27
R=r OCL=18033 CL=18033
2008-10-29minor int/float fixesRuss Cox2-5/+5
R=ken OCL=18032 CL=18032
2008-10-29shift bug in constant evaluatorRuss Cox1-0/+23
R=ken OCL=18031 CL=18031
2008-10-27update golden.outRob Pike1-1/+1
R=ken OCL=17900 CL=17900
2008-10-25testKen Thompson1-0/+236
R=r OCL=17855 CL=17855
2008-10-24Per discussion earlier today with r and gri: when an interfaceIan Lance Taylor3-1/+25
object has a value of type "int", it should not automatically convert to type "int32". That is, the type alias "int" should be regarded as having been defined as though "type int int32" appeared outside of the package, and as therefore being a different type from "int32". R=ken DELTA=21 (20 added, 0 deleted, 1 changed) OCL=17587 CL=17842
2008-10-24fix method function type compare bug (again)Russ Cox2-3/+21
R=ken OCL=17819 CL=17819
2008-10-23update golden.outRuss Cox1-4/+4
R=iant DELTA=4 (0 added, 0 deleted, 4 changed) OCL=17680 CL=17711
2008-10-22Match gccgo error messages.Ian Lance Taylor1-5/+5
convlit.go:17: error: incompatible type in initialization convlit.go:18: error: incompatible types in binary expression convlit.go:19: error: incompatible types in binary expression convlit.go:20: error: incompatible types in binary expression convlit.go:21: error: incompatible types in binary expression convlit.go:23: error: cannot convert non-integer constant convlit.go:24: error: integer type overflow convlit.go:25: error: floating point overflow R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=17649 CL=17661
2008-10-21reject new of function typeRuss Cox1-0/+14
R=ken OCL=17598 CL=17598
2008-10-21rewrite &Point{1, 2} as allocationRuss Cox3-14/+9
R=ken OCL=17592 CL=17592
2008-10-216g: use full type in sigt[0].nameRuss Cox1-4/+4
sys: add sys.reflect runtime: add canfail flag for later R=ken OCL=17583 CL=17583
2008-10-216g:Russ Cox1-2/+2
* print int as int, not P.int * write type info for non-exported types in its own new section. ar: skip over rest of line after $$ R=ken OCL=17568 CL=17568
2008-10-20Match error messages generated by gccgo:Ian Lance Taylor1-2/+2
convlit1.go:6:15: error: composite literal requires array, map, or struct type convlit1.go:5:16: error: incompatible type for element 0 in composite literal convlit1.go:10:15: error: incompatible types in binary expression R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=17506 CL=17509
2008-10-20add primitive ftoa, dtoa to strings library.Rob Pike1-1/+5
R=rsc DELTA=72 (69 added, 0 deleted, 3 changed) OCL=17478 CL=17480