Russ Cox
77a911bcc1
update golden.out
...
R=r
OCL=16250
CL=16250
2008-09-30 15:45:49 -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
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
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
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
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
Rob Pike
9ebd9d3b7d
fix some tests
...
R=ken
OCL=15598
CL=15598
2008-09-20 15:16:48 -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
68209ed5e3
fix printing of -(1<<63)
...
R=r
OCL=15441
CL=15445
2008-09-17 14:08:52 -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
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
Rob Pike
c4748872b8
update golden
...
R=gri
OCL=15014
CL=15014
2008-09-09 12:46:21 -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
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
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
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
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
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
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
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
Rob Pike
f436ade2fd
update tests
...
R=gri
OCL=13526
CL=13526
2008-07-28 16:08:38 -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