Russ Cox
59167e5bdb
diagnose export of incomplete type
...
R=ken
OCL=17253
CL=17253
2008-10-15 17:51:23 -07:00
Ken Thompson
8973e1ffb7
basic types/interfaces test
...
R=r
OCL=17247
CL=17247
2008-10-15 17:15:47 -07:00
Rob Pike
13508ceabe
bug is fixed
...
R=ken
OCL=17208
CL=17208
2008-10-15 11:49:34 -07:00
Rob Pike
151c0de8bc
update bug list
...
R=ken
OCL=17169
CL=17169
2008-10-14 19:41:05 -07:00
Russ Cox
82e41cc533
allow trailing comma in braced initialized list
...
R=ken
OCL=17141
CL=17143
2008-10-14 17:10:39 -07:00
Rob Pike
99c5b2ed4d
6g thinks a struct with one entry yields a composite that is a basic conversion
...
R=rsc
DELTA=12 (12 added, 0 deleted, 0 changed)
OCL=16989
CL=16998
2008-10-13 12:26:58 -07:00
Robert Griesemer
32d00e6cc6
- added missing ';' according to new rules
...
(no effect on the test, but now parseable)
R=r
OCL=16936
CL=16936
2008-10-10 16:18:01 -07:00
Robert Griesemer
e7c8e78879
- removed extra package clause
...
R=rsc
DELTA=2 (0 added, 2 deleted, 0 changed)
OCL=16927
CL=16927
2008-10-10 14:50:23 -07:00
Russ Cox
7e241107f1
test of new empty productions
...
R=gri
DELTA=8 (8 added, 0 deleted, 0 changed)
OCL=16765
CL=16767
2008-10-08 15:33:18 -07:00
Russ Cox
b4f8e01acb
more interface checks:
...
- 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-08 09:21:57 -07:00
Russ Cox
e6cd1e445b
remove uses of *T as an implicit forward declaration of T
...
R=gri,r
OCL=16648
CL=16652
2008-10-07 12:59:54 -07:00
Russ Cox
eb452f4b6e
test that mutually recursive interfaces compile
...
R=r
DELTA=18 (18 added, 0 deleted, 0 changed)
OCL=16639
CL=16647
2008-10-07 12:36:39 -07:00
Russ Cox
983f06bdb6
update code to follow new semicolon rules:
...
* 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-07 12:31:31 -07:00
Rob Pike
7ee60b174d
sys.stringtorune doesn't need a length parameter.
...
R=rsc
DELTA=7 (0 added, 0 deleted, 7 changed)
OCL=16600
CL=16630
2008-10-07 10:03:34 -07:00
Russ Cox
74e2e087e2
change type names to go live at the name, so that
...
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-06 16:44:17 -07:00
Rob Pike
717de79976
change in spec results in non-error
...
R=gri
DELTA=4 (0 added, 3 deleted, 1 changed)
OCL=16565
CL=16579
2008-10-06 16:27:14 -07:00
Ian Lance Taylor
be0c25ee93
Change old-style export declaration to new style export of
...
type definition.
R=r
DELTA=3 (0 added, 2 deleted, 1 changed)
OCL=16537
CL=16545
2008-10-06 13:12:03 -07:00
Rob Pike
98c208ee1d
bug026 and bug060 are fixed. update.
...
R=rsc
DELTA=87 (37 added, 50 deleted, 0 changed)
OCL=16498
CL=16507
2008-10-05 08:34:48 -07:00
Russ Cox
f464beb61d
fix method use bug in powser1.
...
R=r
DELTA=7 (2 added, 2 deleted, 3 changed)
OCL=16495
CL=16499
2008-10-04 22:11:26 -07:00
Russ Cox
2e1bb4a4cf
add method test & fix method name bugs
...
R=ken,r
DELTA=86 (72 added, 9 deleted, 5 changed)
OCL=16488
CL=16488
2008-10-04 02:51:03 -07:00
Russ Cox
7766b12ead
const bug, name bug - working on both
...
R=r
DELTA=43 (43 added, 0 deleted, 0 changed)
OCL=16468
CL=16475
2008-10-03 17:06:24 -07:00
Russ Cox
b8babed7c2
new import/export format
...
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-03 16:15:55 -07:00
Ian Lance Taylor
8d0ed065dc
With the cleanup of method types, this test case is now
...
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-10-01 17:01:42 -07:00
Russ Cox
77a911bcc1
update golden.out
...
R=r
OCL=16250
CL=16250
2008-09-30 15:45:49 -07:00
Russ Cox
5ed04d71fb
tests of new func arg code
...
R=r
DELTA=41 (41 added, 0 deleted, 0 changed)
OCL=16212
CL=16223
2008-09-30 14:08:43 -07:00
Rob Pike
ca6d4238a4
update golden for new error messages
...
R=rsc
OCL=16213
CL=16213
2008-09-30 13:07:38 -07:00
Rob Pike
fa2b4cbf44
104, 107, 108: they are known to fail, so mark them appropriately.
...
update golden
add the "goroutines" test
R=iant
DELTA=74 (36 added, 23 deleted, 15 changed)
OCL=16194
CL=16206
2008-09-30 12:31:47 -07:00
Ian Lance Taylor
aadd32223d
Test that floating point constants resolve to type "float".
...
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-29 18:17:42 -07:00
Russ Cox
785afb0847
make bugs not fail
...
R=r
DELTA=6 (0 added, 0 deleted, 6 changed)
OCL=16110
CL=16114
2008-09-29 13:16:22 -07:00
Ian Lance Taylor
08df4dcf7d
Storing an out of range constant into a variable should
...
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-29 11:03:21 -07:00
Russ Cox
43c5e63c00
Darwin kqueue/kevent-based network FDs
...
R=r
OCL=15998
CL=16004
2008-09-26 14:46:28 -07:00
Russ Cox
d448d18cb4
test and fix non-blocking chan ops on buffered chans
...
R=ken
DELTA=68 (19 added, 0 deleted, 49 changed)
OCL=15966
CL=15969
2008-09-26 11:47:04 -07:00
Ian Lance Taylor
6270e70b76
Add test case for 6g bug: result variable does not hide the
...
package name in the scope.
R=r
DELTA=12 (12 added, 0 deleted, 0 changed)
OCL=15913
CL=15926
2008-09-25 20:31:03 -07:00
Russ Cox
eeeaf6b931
6g misparses negative constants in imports
...
R=r
DELTA=8 (8 added, 0 deleted, 0 changed)
OCL=15893
CL=15898
2008-09-25 16:32:39 -07:00
Robert Griesemer
b6429768c6
bug: package identifier not visible
...
(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-25 15:45:19 -07:00
Ian Lance Taylor
b70d42f323
6g currently accepts setting a string value to an integer
...
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-25 15:08:52 -07:00
Russ Cox
5383e28ea0
change string([]byte) to pass array, rather than &a[0],
...
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-22 20:12:15 -07:00
Rob Pike
4d12c0e170
add os.Getenv()
...
R=rsc
DELTA=51 (50 added, 0 deleted, 1 changed)
OCL=15665
CL=15667
2008-09-22 17:31:41 -07:00
Russ Cox
c14924bcc8
implement zoneinfo reader
...
R=r
DELTA=348 (338 added, 0 deleted, 10 changed)
OCL=15648
CL=15660
2008-09-22 16:41:14 -07:00
Russ Cox
173ca8a2d0
re-fix bug067, update golden.out
...
R=r
DELTA=9 (4 added, 3 deleted, 2 changed)
OCL=15655
CL=15655
2008-09-22 16:16:22 -07:00
Russ Cox
fb40f88c40
test cleanup
...
- 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-22 13:47:53 -07:00
Russ Cox
fb2c66710c
compiler changes:
...
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-22 12:45:01 -07:00
Ken Thompson
8a9752dcfb
another async select bug
...
R=r
OCL=15599
CL=15599
2008-09-20 19:56:40 -07:00
Rob Pike
9ebd9d3b7d
fix some tests
...
R=ken
OCL=15598
CL=15598
2008-09-20 15:16:48 -07:00
Ken Thompson
934a19fa4b
channel test
...
R=r
OCL=15587
CL=15587
2008-09-19 20:52:59 -07:00
Ian Lance Taylor
66b261a082
Check for specific error messages in the testsuite. This
...
permits testing that the compiler emits error messages for
specific lines that match egrep regexps. The desired error
messages are expressed using comments of the form
// ERROR "regexp"
R=r
DELTA=90 (73 added, 8 deleted, 9 changed)
OCL=15513
CL=15566
2008-09-19 14:39:49 -07:00
Russ Cox
72e3b204e4
add gobuild.
...
use gobuild-generated Makefile for math and os.
other makefile tweaks.
move math/main.go to test/math.go
R=r
OCL=15529
CL=15537
2008-09-19 11:55:46 -07:00
Robert Griesemer
6a0fb60866
- added item to TODO list in go_spec
...
- filed a bug
R=r
OCL=15517
CL=15517
2008-09-18 23:16:22 -07:00
Russ Cox
68209ed5e3
fix printing of -(1<<63)
...
R=r
OCL=15441
CL=15445
2008-09-17 14:08:52 -07:00
Russ Cox
9350ef4eea
add network listening & tests
...
R=r,presotto
OCL=15410
CL=15440
2008-09-17 13:49:23 -07:00
Rob Pike
27c0eb8431
update tests to new communications syntax
...
powser1.go has not been tested - waiting for compiler to catch up
R=ken
OCL=15415
CL=15415
2008-09-16 19:33:40 -07:00
Russ Cox
4dfc7f0f14
fix / work around bugs in bufio test
...
R=r
DELTA=11 (8 added, 0 deleted, 3 changed)
OCL=15405
CL=15405
2008-09-16 14:15:54 -07:00
Rob Pike
85f8d4501a
fix some broken tests (tests themselves were wrong)
...
R=gri,rsc
OCL=15310
CL=15402
2008-09-16 14:03:43 -07:00
Rob Pike
c3b397bd99
var bug is fixed
...
R=rsc
OCL=15400
CL=15400
2008-09-16 14:02:41 -07:00
Rob Pike
6f38063369
update bugs
...
delete bug100.go since the compiler is doing what we agreed.
R=gri
OCL=15367
CL=15367
2008-09-15 14:27:15 -07:00
Robert Griesemer
ddc7bc5aba
test program to generate multiples of a set of factors
...
(as written, factors are 2, 3, and 5)
R=r
OCL=15286
CL=15286
2008-09-12 17:39:29 -07:00
Russ Cox
7c9e2c2b6c
buffered input & output
...
R=r
DELTA=812 (803 added, 0 deleted, 9 changed)
OCL=15225
CL=15280
2008-09-12 16:42:53 -07:00
Russ Cox
22731159b0
array literals not initialized
...
R=r
DELTA=11 (11 added, 0 deleted, 0 changed)
OCL=15222
CL=15276
2008-09-12 16:35:02 -07:00
Russ Cox
729bc5c0c7
rudimentary string utilities.
...
R=r
DELTA=314 (306 added, 8 deleted, 0 changed)
OCL=15074
CL=15263
2008-09-12 16:12:20 -07:00
Russ Cox
96b906498a
out of bounds bug
...
R=r
DELTA=9 (9 added, 0 deleted, 0 changed)
OCL=15223
CL=15223
2008-09-12 09:43:21 -07:00
Russ Cox
d988e78889
bug 100 - spurious return warnings
...
R=r
OCL=15221
CL=15221
2008-09-12 08:37:08 -07:00
Russ Cox
ed18e57896
new bug
...
R=r
DELTA=34 (34 added, 0 deleted, 0 changed)
OCL=15178
CL=15181
2008-09-11 17:19:38 -07:00
Robert Griesemer
3cd7e43182
- map composites should be of correct map type (instead of pointer type)
...
R=r
OCL=15180
CL=15180
2008-09-11 17:16:50 -07:00
Robert Griesemer
24b3995cb6
- 2 bugs with composite literals
...
R=r
OCL=15179
CL=15179
2008-09-11 17:11:16 -07:00
Robert Griesemer
94979c3177
- added 2 bugs
...
- moved bug 060 back into bugs
R=r
OCL=15175
CL=15175
2008-09-11 16:17:25 -07:00
Rob Pike
d6f15be61d
fixes for funcs without returns
...
R=ken
OCL=15170
CL=15170
2008-09-11 15:48:42 -07:00
Robert Griesemer
e35139afd4
- added bug093.go
...
R=r
DELTA=80 (78 added, 2 deleted, 0 changed)
OCL=15094
CL=15101
2008-09-10 14:21:42 -07:00
Robert Griesemer
0416f994b7
- added convenience wrappers for sort
...
(work now with Ken's latest compiler fix)
- exoanded test cases accordingly
- fixed a type in the spec (thx r)
R=r
DELTA=65 (62 added, 2 deleted, 1 changed)
OCL=15050
CL=15050
2008-09-09 18:13:08 -07:00
Rob Pike
c4748872b8
update golden
...
R=gri
OCL=15014
CL=15014
2008-09-09 12:46:21 -07:00
Robert Griesemer
ffbccb66c2
fixed sorting.go to use proper composite literal {}'s instead of
...
"conversion"
R=r
OCL=14976
CL=14976
2008-09-08 18:50:35 -07:00
Robert Griesemer
18852cf6d3
- added sort package and test case
...
R=r
OCL=14975
CL=14975
2008-09-08 18:43:42 -07:00
Russ Cox
46eb0f7b08
limit tests to 4GB of memory.
...
3G works on thresher, 2G does not
R=r
OCL=14956
CL=14958
2008-09-08 15:22:45 -07:00
Ken Thompson
0194aaf918
T{} syntax for constructors
...
T(expression) for conversion
FUNC keyword no longer a type
R=r
OCL=14887
CL=14887
2008-09-05 19:50:34 -07:00
Rob Pike
7713599f95
update tests
...
R=gri
OCL=14847
CL=14847
2008-09-04 17:36:57 -07:00
Rob Pike
2a08f29e5f
resolve that all unnecessary backslashes are rejected.
...
bug068 is not a bug.
R=gri
OCL=14838
CL=14838
2008-09-04 16:48:19 -07:00
Rob Pike
696815c542
extend composite literal test.
...
update tests.
update golden.out
R=gri
OCL=14816
CL=14816
2008-09-04 13:35:19 -07:00
Rob Pike
6c72bfa55b
fix bug in stack overflow check.
...
if stack is in low memory and frame size is huge, test could wrap around!
fix by omitting test altogether if we know frame is big.
R=gri
OCL=14782
CL=14782
2008-09-03 19:58:46 -07:00
Rob Pike
5ee2b0478a
update bugs
...
add test for composite literals
R=gri
OCL=14766
CL=14766
2008-09-03 15:54:33 -07:00
Rob Pike
e1e53e35a4
update tests
...
add commands to two new ken tests
R=gri
OCL=14751
CL=14751
2008-09-03 13:21:05 -07:00
Russ Cox
32556ef9e7
in golden.out, replace $RUNFILE with '$RUNFILE'
...
and replace pid with PID
R=r
DELTA=4 (2 added, 0 deleted, 2 changed)
OCL=14727
CL=14727
2008-09-02 14:26:59 -07:00
Rob Pike
a0b2ccf9f4
vector cleanup:
...
- change Delete to Remove
- return deleted element in Remove
- remove range checking (runtime does this for you)
R=gri
OCL=14714
CL=14714
2008-09-02 13:16:43 -07:00
Rob Pike
9fbc221f0e
update tests.
...
fix bug092, which was incorrectly specified
R=gri
OCL=14713
CL=14713
2008-09-02 13:08:40 -07:00
Robert Griesemer
fb4c2a3737
- declaring large fixed arrays is causing runtime crash
...
R=ken
OCL=14658
CL=14660
2008-08-29 13:47:29 -07:00
Robert Griesemer
7b4d719686
- removed need for int() conversion now that x << s has correct type
...
- updated golden.out
R=r
DELTA=9 (0 added, 8 deleted, 1 changed)
OCL=14657
CL=14657
2008-08-29 13:33:34 -07:00
Ken Thompson
944ad62ecd
fix type of (1<<x)
...
R=r
OCL=14656
CL=14656
2008-08-29 13:24:53 -07:00
Robert Griesemer
7eff30f0f0
- updated test cases to latest compiler changes
...
R=r
DELTA=185 (59 added, 33 deleted, 93 changed)
OCL=14655
CL=14655
2008-08-29 13:21:00 -07:00
Robert Griesemer
08c4380e48
- updated and cleaned up vector.go to use new array instructions
...
- added initial test cases (needs to be expanded)
R=r
DELTA=135 (84 added, 30 deleted, 21 changed)
OCL=14654
CL=14654
2008-08-29 11:10:23 -07:00
Ken Thompson
66a603c986
arrays
...
R=r
OCL=14603
CL=14603
2008-08-27 17:28:30 -07:00
Rob Pike
3308eb4406
delete redundant bug.
...
fix typo.
add scoping bug.
R=gri
OCL=14349
CL=14349
2008-08-20 15:46:05 -07:00
Robert Griesemer
a9af184131
bugs related to constat types
...
R=r
DELTA=10 (6 added, 4 deleted, 0 changed)
OCL=14348
CL=14348
2008-08-20 15:43:12 -07:00
Rob Pike
3aecf2ed07
add test for constants
...
add bug in constant evaluation (erroneously allowing assignment of float to int)
update golden
R=gri
OCL=14153
CL=14153
2008-08-13 12:15:24 -07:00
Rob Pike
0f1d439e82
update bugs
...
exploit the compiler now supporting i2s and i2i and clean up some code
fix up some panics and prints
R=gri
OCL=14141
CL=14141
2008-08-12 17:07:33 -07:00
Rob Pike
8c89767c72
update tests
...
R=gri
OCL=14137
CL=14137
2008-08-12 16:11:55 -07:00
Ken Thompson
4797523572
fixed bugs in const/case
...
R=r
DELTA=138 (75 added, 12 deleted, 51 changed)
OCL=14129
CL=14131
2008-08-12 14:04:03 -07:00
Rob Pike
bc2f5f1dce
fix bug depot:
...
1) fix print statements, panic statements (parentheses required)
2) len is now allowed as a var name (bug053)
R=gri
OCL=14106
CL=14106
2008-08-11 22:07:49 -07:00
Rob Pike
968701beb1
- fix signedness bug in sys.Inf()
...
- add NaN, Inf printing to fmt
- fix a couple of bugs in fmt
- add a test for fmt
R=ken
OCL=14092
CL=14092
2008-08-11 15:04:54 -07:00
Rob Pike
2738f42d18
add test for maps.
...
R=gri
OCL=14090
CL=14090
2008-08-11 13:32:13 -07:00
Rob Pike
cbaca0be24
code in bug was wrong; correct and improve. works now.
...
R=gri
OCL=14088
CL=14088
2008-08-11 13:08:16 -07:00
Robert Griesemer
1e0b17b24c
- added test case for compiler bug re: exported
...
variables of function pointer type
R=r
OCL=14086
CL=14086
2008-08-11 11:40:19 -07:00
Rob Pike
1f41ed375b
update tests.
...
fixedbugs/bug012.go is broken again but i left it where it is, with
the golden file not reflecting the breakage so it will be noticed
R=ken,gri
OCL=14073
CL=14073
2008-08-11 10:10:48 -07:00
Robert Griesemer
7924b3862d
- removed misleading comment in bug041.go
...
- removed bug042.go - not a bug according to updated spec
R=r
DELTA=43 (5 added, 36 deleted, 2 changed)
OCL=14008
CL=14010
2008-08-08 16:12:34 -07:00
Rob Pike
3963fe3b32
fix a couple of tests that had shell errors
...
clean up the golden file a bit to have less meaningless content and be more robust to spurious diffs.
now there is output only for tests that produce output or failure.
R=gri
OCL=14005
CL=14005
2008-08-08 10:57:23 -07:00
Robert Griesemer
4addd94687
bug: cannot take len() of a constant string
...
R=r
OCL=13989
CL=13989
2008-08-07 17:56:12 -07:00
Rob Pike
69353f0a50
fix erroneous code in bugs; reported by iant.
...
also rob1.go runs, so fix its status.
R=gri,iant
OCL=13957
CL=13957
2008-08-07 13:27:58 -07:00
Robert Griesemer
20c5bcfdbb
returning from a function that specified a result should cause a run-time
...
failure if no return is actually executed
R=r
OCL=13915
CL=13915
2008-08-06 10:02:18 -07:00
Robert Griesemer
044a3b1a5e
bug: package name not visible
...
R=r
OCL=13898
CL=13898
2008-08-05 16:09:49 -07:00
Rob Pike
033682deec
workaround for compiler bug: len(a) is zero
...
TBR=iant
OCL=13873
CL=13873
2008-08-05 08:20:34 -07:00
Rob Pike
f439299035
fix bug - need to read final message in daisy chain to avoid hang
...
R=rsc
OCL=13840
CL=13840
2008-08-04 16:29:22 -07:00
Rob Pike
234dd3d7e3
go method bug is fixed.
...
R=gri
OCL=13766
CL=13766
2008-08-02 15:52:36 -07:00
Rob Pike
aede753cd2
new bug: go on a method is wrong
...
R=gri
OCL=13741
CL=13741
2008-08-01 16:23:16 -07:00
Robert Griesemer
defecbd7a9
bug: non-exported type is accessible in client
...
R=r
OCL=13736
CL=13738
2008-08-01 15:22:41 -07:00
Robert Griesemer
0748bf3797
- filed 2 bugs: unary ^ not implemented, compiler crash with illegal const decl
...
R=r
OCL=13666
CL=13666
2008-07-30 16:09:29 -07:00
Robert Griesemer
9cf8312a57
- bug in function invocation
...
R=r
OCL=13640
CL=13640
2008-07-30 10:14:39 -07:00
Robert Griesemer
fce9118610
- handling of pointer forward decls
...
- some comments added to bug cases
- added notes
R=r
OCL=13543
CL=13543
2008-07-29 12:03:06 -07:00
Rob Pike
f436ade2fd
update tests
...
R=gri
OCL=13526
CL=13526
2008-07-28 16:08:38 -07:00
Robert Griesemer
4a9b4e6604
- parameters must be named
...
R=r
OCL=13520
CL=13520
2008-07-28 12:08:06 -07:00
Rob Pike
9c8f48bd0e
use real select
...
R=ken
OCL=13519
CL=13519
2008-07-28 12:03:56 -07:00
Rob Pike
ea0569026c
update tests
...
R=gri
OCL=13516
CL=13516
2008-07-28 10:22:49 -07:00
Rob Pike
c1736ed6be
update golden
...
R=gri
OCL=13515
CL=13515
2008-07-28 09:57:43 -07:00
Rob Pike
6bff372594
update tests
...
R=ken
OCL=13507
CL=13507
2008-07-27 13:50:54 -07:00
Rob Pike
8fda2e4083
really fix it this time
...
R=ken
OCL=13506
CL=13506
2008-07-27 13:32:33 -07:00
Rob Pike
8a09c131cc
code had syntax error masking real bug
...
R=ken
OCL=13505
CL=13505
2008-07-27 13:30:53 -07:00
Rob Pike
756c63cd02
bug: compiler crash on select receive without variable.
...
R=gri
OCL=13470
CL=13470
2008-07-25 12:49:36 -07:00
Rob Pike
1fc8e6f74a
update tests
...
R=gri
OCL=13469
CL=13469
2008-07-25 12:20:14 -07:00
Robert Griesemer
485d1bb3ed
- filed bug: label identifiers should not be allowed to match
...
other identifiers in the same scope.
R=r
OCL=13431
CL=13431
2008-07-24 13:36:18 -07:00
Robert Griesemer
d544ddb555
- filed bug: label names in different scopes should not conflict
...
R=r
OCL=13430
CL=13430
2008-07-24 13:30:49 -07:00
Rob Pike
5a30b5b8a9
new bug: x, ok = t.m[i] doesn't compile
...
R=ken
OCL=13395
CL=13395
2008-07-23 18:11:17 -07:00
Rob Pike
820f223af9
compiler crash in string('a', 'b', '\n');
...
SVN=128253
2008-07-21 15:41:39 -07:00
Ken Thompson
b78676a49d
start of select
...
random bugs fixed
SVN=128149
2008-07-20 20:13:07 -07:00
Rob Pike
15d472dd53
add an eval function (written by ken)
...
SVN=128122
2008-07-19 15:11:25 -07:00
Rob Pike
85c85e2b3f
test update
...
SVN=128120
2008-07-19 15:08:56 -07:00
Rob Pike
f87a960adf
add doug's power series package
...
SVN=128063
2008-07-18 14:18:07 -07:00
Robert Griesemer
bce1c3f09a
- added 2 bugs tests
...
SVN=128056
2008-07-18 12:26:48 -07:00
Rob Pike
6426659db9
update tests
...
SVN=127826
2008-07-17 11:15:11 -07:00
Rob Pike
30a39e8f29
compiler bug: infinite recursion in subtype()
...
SVN=127822
2008-07-17 11:04:44 -07:00
Rob Pike
fbe7ba5b6a
strengthen test by checking values
...
SVN=127601
2008-07-16 14:49:01 -07:00
Rob Pike
f6c13bb2b7
add test for non-blocking channel ops
...
SVN=127595
2008-07-16 14:41:27 -07:00
Ken Thompson
ac048ce7f4
new chan syntax
...
SVN=127437
2008-07-15 21:07:59 -07:00
Rob Pike
33101926f9
channel tests with new syntax
...
SVN=127436
2008-07-15 20:52:07 -07:00
Rob Pike
a703c9a926
add a couple of tests
...
update golden
SVN=127428
2008-07-15 19:19:50 -07:00
Rob Pike
e9ecc41eb9
update golden.out
...
SVN=127240
2008-07-15 10:49:26 -07:00
Rob Pike
aff8d9b468
nested breaks handled wrong
...
SVN=127239
2008-07-15 10:44:02 -07:00
Rob Pike
27e43085a3
new bug
...
SVN=127232
2008-07-15 10:27:05 -07:00
Rob Pike
42ae6851c0
fix bug names
...
add a new one: go func() { print "ok\n" } ();
SVN=127144
2008-07-14 19:31:06 -07:00
Robert Griesemer
08b5993b8e
- filed 6g crash bug
...
SVN=127093
2008-07-14 16:26:41 -07:00
Rob Pike
4ce3065e63
update golden
...
improve sieve test, and split into two versions
SVN=127077
2008-07-14 15:13:59 -07:00
Rob Pike
2fdbf0d595
fix a couple of minor errors
...
SVN=126938
2008-07-12 13:56:33 -07:00
Rob Pike
d0cf215bf2
add new test - factorial by inc and dec
...
SVN=126937
2008-07-12 13:20:21 -07:00
Robert Griesemer
9ec762791e
- filed a bug against 6g (bug065.go)
...
- improved scanner.go error handling
SVN=126706
2008-07-10 13:45:02 -07:00
Rob Pike
655c281303
disambiguate typedefs in export blocks of .6 files
...
SVN=126366
2008-07-08 14:20:04 -07:00
Rob Pike
6810f39edf
test update. also remove two duplicates
...
SVN=126336
2008-07-08 12:22:21 -07:00
Rob Pike
c38391ad7b
test update. some tests now run; no change to output
...
SVN=126328
2008-07-08 11:30:20 -07:00
Rob Pike
5352306f10
fixed three-way decl
...
SVN=126254
2008-07-07 18:07:31 -07:00
Rob Pike
f86c6f673e
k,l,m := 0,0,0 doesn't compile
...
SVN=126247
2008-07-07 17:52:44 -07:00
Rob Pike
5b904a3bde
update to Unicode 5
...
SVN=126184
2008-07-07 14:07:46 -07:00
Rob Pike
c0eb70265d
bug update
...
SVN=126121
2008-07-07 10:17:52 -07:00
Rob Pike
bf14ef61fc
test cleanup
...
SVN=126120
2008-07-07 10:03:10 -07:00
Rob Pike
b0273023f6
one bug fixed
...
SVN=126006
2008-07-03 18:10:54 -07:00
Rob Pike
787cdc65f7
improved iota test for new form
...
SVN=125995
2008-07-03 17:16:08 -07:00
Robert Griesemer
ba25fe80a2
- minor update
...
SVN=125989
2008-07-03 16:51:22 -07:00
Rob Pike
3a613be75e
fix some tests
...
SVN=125987
2008-07-03 16:48:59 -07:00
Robert Griesemer
b43ad96ed6
- filed a bug w/ constant evaluation
...
SVN=125966
2008-07-03 15:16:51 -07:00
Rob Pike
add9c8cc18
fix typo in file name
...
SVN=125964
2008-07-03 15:16:17 -07:00
Robert Griesemer
8b45c369fb
- filed a bug
...
SVN=125596
2008-07-01 18:06:00 -07:00
Rob Pike
0b6e6afb76
add test that was mistakenly not checked in, now fixed
...
SVN=125408
2008-06-30 16:52:17 -07:00
Rob Pike
6973e3813f
update golden
...
fix a comment
SVN=125405
2008-06-30 16:30:53 -07:00
Rob Pike
eca23cfd92
slice doesn't work on a string literal
...
SVN=125259
2008-06-28 12:50:33 -07:00
Rob Pike
00368bae8c
new test - map failure
...
SVN=125258
2008-06-28 11:38:07 -07:00
Rob Pike
282356bf4f
update: hashmap compiles now
...
SVN=125233
2008-06-27 17:58:13 -07:00
Rob Pike
e95481a938
test wasn't being run. it works fine.
...
SVN=125179
2008-06-27 14:25:50 -07:00
Rob Pike
34cb7c299e
export sys.exit
...
update tests to use exit rather than return
ignore return value from main (actually done in prior CL)
SVN=125173
2008-06-27 14:15:06 -07:00
Rob Pike
f977e251fa
add a test
...
fix make.bash for runtime - sysfile.6 depends on OS so simplest thing is to build just our own version
SVN=125130
2008-06-27 11:36:40 -07:00
Robert Griesemer
0f99bec402
- added calc cmd
...
SVN=125025
2008-06-26 18:35:22 -07:00
Rob Pike
695e3938a0
add readfile test
...
update golden
SVN=125006
2008-06-26 17:08:39 -07:00
Robert Griesemer
553771314c
- moved integer code into src/pkg
...
SVN=125003
2008-06-26 16:52:15 -07:00
Ken Thompson
f710e8ed04
simultaneous assignment test
...
SVN=124994
2008-06-26 16:21:51 -07:00
Robert Griesemer
433ac8e57b
- a couple of fixes for integer.go
...
- added pkg dir
SVN=124991
2008-06-26 16:15:43 -07:00
Robert Griesemer
2b8db5a439
- added bug against maps
...
SVN=124977
2008-06-26 15:15:38 -07:00
Robert Griesemer
7e21ec3007
- filed a bug against len()
...
SVN=124926
2008-06-26 11:56:17 -07:00
Robert Griesemer
3311e1b673
- dump registers in case of signal (linux)
...
SVN=124702
2008-06-25 17:07:22 -07:00
Rob Pike
c137d6b8e4
improve bug054.go
...
fix integer.ToString to return the proper, not-nul-terminated value
SVN=124654
2008-06-25 15:22:27 -07:00
Rob Pike
0ece7d470f
add new bug: can't compile a, b := sys.frexp(1.0)
...
SVN=124622
2008-06-25 14:05:38 -07:00
Rob Pike
2987c8434b
arguments available
...
argc, argv, envc, envv all in sys now
sys.argc() etc.
SVN=124398
2008-06-24 15:31:03 -07:00
Rob Pike
7b409b30f2
update some tests
...
SVN=124196
2008-06-23 17:13:33 -07:00
Ken Thompson
a77f7b2497
remove receclarations from tests
...
that are supposed to succeed
SVN=124018
2008-06-21 15:08:04 -07:00
Robert Griesemer
543226e8fd
- added large integer arithmetic package and test cases
...
SVN=123486
2008-06-18 17:09:20 -07:00
Rob Pike
3df8e0a166
clean up ken/rob2.go to eliminate a few workarounds
...
SVN=123442
2008-06-18 14:47:46 -07:00
Rob Pike
74aa77fbd4
add new test bug055
...
SVN=123431
2008-06-18 14:17:24 -07:00
Rob Pike
080bd1ec8a
a couple of bugs around nil are fixed
...
SVN=123423
2008-06-18 13:53:51 -07:00
Rob Pike
727ea928d5
forgot command line for bug054
...
update golden.out
SVN=123412
2008-06-18 13:08:01 -07:00
Rob Pike
9b664c580f
'default' bug in switch statements is fixed
...
SVN=123411
2008-06-18 13:06:09 -07:00
Rob Pike
a65cc2a867
add a bug: method call doesn't compile
...
SVN=123403
2008-06-18 11:51:21 -07:00
Robert Griesemer
9615542d10
- added another bug test ('len' shouldn't be a keyword)
...
SVN=123225
2008-06-17 16:22:02 -07:00
Robert Griesemer
e5373f27d0
- added 2 bug tests
...
SVN=123220
2008-06-17 16:04:33 -07:00
Rob Pike
ec94a8cfc9
add two more tests
...
SVN=123143
2008-06-17 10:56:28 -07:00
Rob Pike
bb57a5bc2c
added two new small tests
...
SVN=123010
2008-06-16 15:18:10 -07:00
Rob Pike
9a58c9c52a
update more tests to reflect tweaked grammar for if, switch
...
SVN=122916
2008-06-16 12:16:11 -07:00
Rob Pike
39b28df01e
update test results
...
SVN=122912
2008-06-16 11:36:23 -07:00
Ken Thompson
e1a06ccc80
now checks for lvalue/rvalue context of
...
expressions.
start of generics for calling builtin
functions
start of map type
'any' demoted from reserved word to type
SVN=122808
2008-06-15 20:24:30 -07:00
Rob Pike
30706a7ee7
error messages now have colon after line number
...
SVN=122803
2008-06-15 12:22:35 -07:00
Rob Pike
a432e09b44
Add nil test, with bug
...
SVN=122644
2008-06-13 09:09:22 -07:00
Ken Thompson
343f5aa7b4
better import/export
...
SVN=122584
2008-06-12 21:48:56 -07:00
Rob Pike
69b74c3953
import the plan 9 libraries libc (lib9) and libbio into the tree.
...
remove the dependency on /home/r.
SVN=122482
2008-06-12 13:26:16 -07:00
Rob Pike
4633a8ffe7
This test now runs correctly, with no bugs commented out
...
SVN=122460
2008-06-12 11:04:40 -07:00
Robert Griesemer
a544938c26
- added test case
...
SVN=122159
2008-06-11 12:07:43 -07:00
Rob Pike
e8010b38e4
add bug045: bad nil assigning into array
...
update robfunc.go (BUG comment deleted)
SVN=122143
2008-06-11 10:33:20 -07:00
Ken Thompson
b1a3463a7b
made fp numbers from integers and
...
checked values
SVN=121972
2008-06-10 13:23:19 -07:00
Rob Pike
a32063b00e
divide is now in; update golden
...
SVN=121739
2008-06-09 13:33:33 -07:00
Rob Pike
3086910f17
fix bug in closeness for float literal test
...
SVN=121628
2008-06-08 19:37:22 -07:00
Rob Pike
33f7637d6a
fix float lit to return 1, print error
...
SVN=121627
2008-06-08 19:33:54 -07:00
Rob Pike
5bccc6acec
move file for fixed bug
...
SVN=121626
2008-06-08 19:26:07 -07:00
Rob Pike
814896ea5f
update lots of tests
...
SVN=121624
2008-06-08 19:21:16 -07:00
Rob Pike
f07d2eea52
fix string_lit test to be more thorough
...
SVN=121623
2008-06-08 19:08:00 -07:00
Rob Pike
316bc2637d
default to amd64 in run
...
test/func.go now works; update golden.out
SVN=121617
2008-06-08 17:29:57 -07:00
Rob Pike
e285ed6090
Fix a few tests
...
SVN=121614
2008-06-08 17:19:11 -07:00
Ken Thompson
ad073b1cf1
asdf
...
SVN=121608
2008-06-08 16:16:17 -07:00
Robert Griesemer
d9178fceb6
- method forward decl. bug
...
SVN=121563
2008-06-06 17:50:46 -07:00
Robert Griesemer
fc184ef887
- forward decl bug
...
SVN=121561
2008-06-06 17:35:08 -07:00
Robert Griesemer
709e3a3fbd
- tests for type forward declarations
...
SVN=121560
2008-06-06 17:23:22 -07:00
Rob Pike
5e77b0a82e
fix erroneous test
...
SVN=121554
2008-06-06 17:08:31 -07:00
Robert Griesemer
cc85574c25
- updated golden.out one more time
...
SVN=121552
2008-06-06 17:07:38 -07:00
Robert Griesemer
938c5c5e2c
- fixed test commands
...
SVN=121551
2008-06-06 17:05:53 -07:00
Robert Griesemer
298bafe2b5
- fixed golden.out
...
SVN=121550
2008-06-06 17:02:55 -07:00
Robert Griesemer
70321bf9fa
- moved some bugs into bugs directory
...
SVN=121548
2008-06-06 17:02:01 -07:00
Robert Griesemer
5182aff001
- more tests (mostly redeclaration errors that are not checked)
...
SVN=121546
2008-06-06 16:59:54 -07:00
Rob Pike
094ee44b32
check in the bugs and fixed bugs
...
SVN=121543
2008-06-06 16:56:18 -07:00
Robert Griesemer
e92b753810
- fixed a few tests and added 3 incorrectly succeeding tests
...
- updated go_lang.txt to be more uniform and match the implementation
- made makehtml work on Mac
- fixed a couple of bugs in go.atg
SVN=121520
2008-06-06 15:53:14 -07:00
Robert Griesemer
2f538554f6
- fix to func.go
...
- extra empty line between test output
SVN=121499
2008-06-06 15:08:24 -07:00
Rob Pike
ab34d15f69
add ken's tests.
...
update run to work with multiple directories
SVN=121485
2008-06-06 14:27:34 -07:00
Rob Pike
384c5bed2d
update golden.out for two versions of hello, world
...
SVN=121479
2008-06-06 14:02:48 -07:00
Ken Thompson
dfdc7c1a8a
turing now works
...
SVN=121477
2008-06-06 13:59:17 -07:00
Rob Pike
17ee7818de
print count of failing tests
...
SVN=121467
2008-06-06 13:38:16 -07:00
Rob Pike
aebf31ff5d
remove 6.out in test/run. update golden file
...
SVN=121465
2008-06-06 13:32:59 -07:00
Rob Pike
126150d0f6
lots of new tests
...
SVN=121464
2008-06-06 13:28:03 -07:00
Rob Pike
27fb2abf76
first cut at test suite
...
SVN=121454
2008-06-06 12:57:00 -07:00
Rob Pike
c0c30258be
turn spaces to tabs
...
replace ifs with switch
still runs!
SVN=118947
2008-05-15 15:20:59 -07:00
Robert Griesemer
9bc7b08abb
- changed literal syntax to use the convert notation
...
- fixed issued with function declarations/function literals
- added more tests and fixed existing tests
SVN=118167
2008-05-08 17:12:15 -07:00
Robert Griesemer
76abea7c6d
- fixed a test
...
- added extra basic type aliases
- added select statement
SVN=117448
2008-05-01 18:48:52 -07:00
Robert Griesemer
d79b17e60a
- Make Coco/R-based parser work w/ UTF-8 encoded files even if there is
...
no (optional) UTF-8 marker present.
SVN=113931
2008-03-26 16:12:43 -07:00
Robert Griesemer
41d34e2451
- fixed my scripts
...
SVN=113864
2008-03-26 09:50:20 -07:00
Robert Griesemer
2f5b4d9893
- new directory structure
...
SVN=113851
2008-03-26 09:28:57 -07:00