summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2008-10-17do not set t->recur on basic types.Russ Cox2-0/+31
the comment talked about printing, but now t->recur is only used for typehash. in typehash it is important to compute different hashes for the different basic types. add test that makes sure an interface { X() int8 } cannot be used as interface { X() int64 } R=ken OCL=17396 CL=17396
2008-10-17update fixed bugs (and delete an irrelevant one)Rob Pike9-36/+20
R=rsc DELTA=328 (158 added, 170 deleted, 0 changed) OCL=17353 CL=17359
2008-10-17make sure errchk only says BUG once,Russ Cox2-8/+20
so that run's count is correct R=iant,r DELTA=20 (12 added, 0 deleted, 8 changed) OCL=17329 CL=17342
2008-10-16diagnose various conversion problemsRuss Cox4-10/+86
R=ken OCL=17320 CL=17320
2008-10-16put toplevel & check back and add testRuss Cox1-0/+9
R=ken OCL=17307 CL=17307
2008-10-15diagnose export of incomplete typeRuss Cox1-0/+16
R=ken OCL=17253 CL=17253
2008-10-15basic types/interfaces testKen Thompson1-0/+104
R=r OCL=17247 CL=17247
2008-10-15bug is fixedRob Pike1-0/+0
R=ken OCL=17208 CL=17208
2008-10-14update bug listRob Pike6-10/+5
R=ken OCL=17169 CL=17169
2008-10-14allow trailing comma in braced initialized listRuss Cox1-0/+17
R=ken OCL=17141 CL=17143
2008-10-136g thinks a struct with one entry yields a composite that is a basic conversionRob Pike1-0/+16
R=rsc DELTA=12 (12 added, 0 deleted, 0 changed) OCL=16989 CL=16998
2008-10-10- added missing ';' according to new rulesRobert Griesemer1-1/+1
(no effect on the test, but now parseable) R=r OCL=16936 CL=16936
2008-10-10- removed extra package clauseRobert Griesemer1-2/+0
R=rsc DELTA=2 (0 added, 2 deleted, 0 changed) OCL=16927 CL=16927
2008-10-08test of new empty productionsRuss Cox1-0/+12
R=gri DELTA=8 (8 added, 0 deleted, 0 changed) OCL=16765 CL=16767
2008-10-08more interface checks:Russ Cox3-0/+75
- pointer to interface cannot have methods - record type names for better runtime error R=r,ken DELTA=85 (80 added, 0 deleted, 5 changed) OCL=16658 CL=16722
2008-10-07remove uses of *T as an implicit forward declaration of TRuss Cox3-0/+11
R=gri,r OCL=16648 CL=16652
2008-10-07test that mutually recursive interfaces compileRuss Cox1-0/+22
R=r DELTA=18 (18 added, 0 deleted, 0 changed) OCL=16639 CL=16647
2008-10-07update code to follow new semicolon rules:Russ Cox15-64/+64
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-10-07sys.stringtorune doesn't need a length parameter.Rob Pike1-1/+1
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=16600 CL=16630
2008-10-06change type names to go live at the name, so thatRuss Cox2-8/+2
type T struct { next *T } and type T *struct { next T } are valid without needing forward declarations. add "type T struct" syntax for forward struct declarations. add "type T interface" syntax, but commented out (need to fix semicolons first) R=ken DELTA=452 (259 added, 115 deleted, 78 changed) OCL=16580 CL=16584
2008-10-06change in spec results in non-errorRob Pike2-4/+1
R=gri DELTA=4 (0 added, 3 deleted, 1 changed) OCL=16565 CL=16579
2008-10-06Change old-style export declaration to new style export ofIan Lance Taylor1-3/+1
type definition. R=r DELTA=3 (0 added, 2 deleted, 1 changed) OCL=16537 CL=16545
2008-10-05bug026 and bug060 are fixed. update.Rob Pike4-13/+0
R=rsc DELTA=87 (37 added, 50 deleted, 0 changed) OCL=16498 CL=16507
2008-10-04fix method use bug in powser1.Russ Cox1-6/+6
R=r DELTA=7 (2 added, 2 deleted, 3 changed) OCL=16495 CL=16499
2008-10-04add method test & fix method name bugsRuss Cox1-0/+63
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488
2008-10-03const bug, name bug - working on bothRuss Cox2-0/+51
R=r DELTA=43 (43 added, 0 deleted, 0 changed) OCL=16468 CL=16475
2008-10-03new import/export formatRuss Cox1-14/+13
package flag export type flag.Flag struct { name flag.string; usage flag.string; \ value flag.Value; next *flag.Flag } type flag.string string type flag.Value interface { AsBool () (? *flag.BoolValue); \ AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \ IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \ Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) } type flag.BoolValue struct { val flag.bool; p *flag.bool } type flag.IntValue struct { val flag.int64; p *flag.int64 } type flag.StringValue struct { val flag.string; p *flag.string } type flag.bool bool func (e *flag.StringValue) AsBool () (? *flag.BoolValue) func (e *flag.StringValue) AsInt () (? *flag.IntValue) ... the \ continuations are for this message, not real. changed delimiter for import from (( )) to $$ $$. replaced mksys.bash with mksys.c changed sys.go to use leading export, fake package name is now SYS not foop don't always require ; on forward func decls R=ken,r DELTA=1827 (446 added, 1083 deleted, 298 changed) OCL=16433 CL=16463
2008-10-01With the cleanup of method types, this test case is nowIan Lance Taylor1-1/+1
invalid. The receiver type is not permitted to be a pointer type. Since 6g currently accepts it, this moves the test case back to the bugs directory. R=gri DELTA=22 (11 added, 11 deleted, 0 changed) OCL=16284 CL=16336
2008-09-30update golden.outRuss Cox1-22/+26
R=r OCL=16250 CL=16250
2008-09-30tests of new func arg codeRuss Cox2-0/+48
R=r DELTA=41 (41 added, 0 deleted, 0 changed) OCL=16212 CL=16223
2008-09-30update golden for new error messagesRob Pike1-1/+2
R=rsc OCL=16213 CL=16213
2008-09-30104, 107, 108: they are known to fail, so mark them appropriately.Rob Pike2-34/+51
update golden add the "goroutines" test R=iant DELTA=74 (36 added, 23 deleted, 15 changed) OCL=16194 CL=16206
2008-09-29Test that floating point constants resolve to type "float".Ian Lance Taylor2-0/+35
Currently 6g seems to resolve them to type "double". R=ken,r DELTA=30 (30 added, 0 deleted, 0 changed) OCL=16132 CL=16152
2008-09-29make bugs not failRuss Cox2-5/+5
R=r DELTA=6 (0 added, 0 deleted, 6 changed) OCL=16110 CL=16114
2008-09-29Storing an out of range constant into a variable shouldIan Lance Taylor3-14/+14
ideally cause the compiler to give an error. Right now 6g warns about large shifts but does not give an error. This CL removes the out of range shift from shift.go, so that it will work with gccgo, and adds a test case in bugs/ to be fixed at a later date. R=ken,r DELTA=23 (9 added, 14 deleted, 0 changed) OCL=16085 CL=16088
2008-09-26Darwin kqueue/kevent-based network FDsRuss Cox1-2/+17
R=r OCL=15998 CL=16004
2008-09-26test and fix non-blocking chan ops on buffered chansRuss Cox1-56/+58
R=ken DELTA=68 (19 added, 0 deleted, 49 changed) OCL=15966 CL=15969
2008-09-25Add test case for 6g bug: result variable does not hide theIan Lance Taylor2-0/+17
package name in the scope. R=r DELTA=12 (12 added, 0 deleted, 0 changed) OCL=15913 CL=15926
2008-09-256g misparses negative constants in importsRuss Cox3-0/+20
R=r DELTA=8 (8 added, 0 deleted, 0 changed) OCL=15893 CL=15898
2008-09-25bug: package identifier not visibleRobert Griesemer1-0/+20
(should be in the scope chain like any other identifier) R=r DELTA=16 (16 added, 0 deleted, 0 changed) OCL=15884 CL=15884
2008-09-256g currently accepts setting a string value to an integerIan Lance Taylor3-4/+16
constant without an explicit conversion. I think that is a bug. This adds a test case for it. Also, change errchk to include the string BUG in error messages, so that failures are included in the count reported by the run shell script. R=r,ken DELTA=11 (7 added, 0 deleted, 4 changed) OCL=15857 CL=15880
2008-09-22change string([]byte) to pass array, rather than &a[0],Russ Cox1-0/+12
to string convert. if the byte array has length 0, the computation of &a[0] throws an index bounds error. for fixed size arrays, this ends up invoking arrays2d unnecessarily, but it works. R=ken DELTA=304 (44 added, 28 deleted, 232 changed) OCL=15674 CL=15678
2008-09-22add os.Getenv()Rob Pike1-0/+26
R=rsc DELTA=51 (50 added, 0 deleted, 1 changed) OCL=15665 CL=15667
2008-09-22implement zoneinfo readerRuss Cox1-0/+86
R=r DELTA=348 (338 added, 0 deleted, 10 changed) OCL=15648 CL=15660
2008-09-22re-fix bug067, update golden.outRuss Cox2-5/+6
R=r DELTA=9 (4 added, 3 deleted, 2 changed) OCL=15655 CL=15655
2008-09-22test cleanupRuss Cox2-35/+9
- do not print tracebacks if $GOTRACEBACK=0 - set GOTRACEBACK=0 during tests - filter out pc numbers in errors R=r DELTA=70 (22 added, 30 deleted, 18 changed) OCL=15618 CL=15642
2008-09-22compiler changes:Russ Cox3-0/+0
export.c: - only expose explicitly exported types to importer - fix behind your back go.h: - add deep() prototype (fixes 64-bit linux crash on time.go) go.y: - add a new syntax error case walk.c: - allow a,b = f() where f is func ptr (fixes bug088) R=ken OCL=15617 CL=15630
2008-09-20another async select bugKen Thompson1-139/+185
R=r OCL=15599 CL=15599
2008-09-20fix some testsRob Pike3-2/+11
R=ken OCL=15598 CL=15598
2008-09-19channel testKen Thompson1-0/+267
R=r OCL=15587 CL=15587