1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:04:41 -07:00
go/test
Russ Cox 1912632019 runtime, type switch: eliminate package global name space assumption
bonus: type switch now detects multiple uses of identical interface types.
bonus: interface types are now order-independent, following the spec.

R=ken2
CC=golang-dev
https://golang.org/cl/194053
2010-01-25 18:23:20 -08:00
..
bench update timing logs for benchmarks. 2010-01-06 19:36:28 -08:00
bugs add bug246 (issue 492) 2010-01-18 18:26:10 -08:00
chan runtime: fix race condition 2009-12-18 12:25:53 -08:00
fixedbugs runtime, type switch: eliminate package global name space assumption 2010-01-25 18:23:20 -08:00
interface test/interface/receiver.go: expand to do dynamic 2009-11-14 19:28:13 -08:00
ken Add explicit locking. 2010-01-19 21:09:58 -08:00
nilptr drop output from nilptr tests; 2009-11-09 23:11:36 -08:00
64bit.go - gofmt these files 2009-12-09 16:55:03 -08:00
235.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
args.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
arm-pass.txt make arm pass match what's working on real hardware 2009-11-14 20:08:22 -08:00
assign.go gc: check for assignment to private fields during initialization 2009-12-03 22:09:58 -08:00
bigalg.go unused imports 2009-09-17 10:27:04 -07:00
blank1.go write-only variable _ 2009-09-08 23:16:19 -07:00
blank.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
chancap.go len and cap on chans 2009-08-20 11:12:04 -07:00
char_lit.go fix up some irregular indentation 2009-08-17 13:30:22 -07:00
closedchan.go add test for close/closed, fix a few implementation bugs. 2009-03-23 18:50:35 -07:00
closure.go make every func literal expression allocate, 2009-07-28 20:01:00 -07:00
cmp1.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
cmp2.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
cmp3.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
cmp4.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
cmp5.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
complit.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
compos.go missing files; cleaned up g4 nothave output. 2009-09-24 13:38:18 -07:00
const1.go Cleaned up gccgo error messages require minor adjustment to 2009-11-05 16:04:45 -08:00
const2.go Recognize gccgo error message. 2009-03-16 21:48:07 -07:00
const3.go make 6g constants behave as ken proposes. (i hope.) 2009-03-12 19:04:38 -07:00
const.go make 6g constants behave as ken proposes. (i hope.) 2009-03-12 19:04:38 -07:00
convert3.go more 6g reorg; checkpoint. 2009-08-03 11:58:52 -07:00
convert.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
convlit1.go more 6g reorg; checkpoint. 2009-08-03 11:58:52 -07:00
convlit.go more 6g reorg; checkpoint. 2009-08-03 11:58:52 -07:00
copy.go - flip in and out to exercise overlap check a little (could do better) 2009-11-18 22:26:36 -08:00
decl.go last round: non-package code 2009-09-15 12:42:24 -07:00
declbad.go last round: non-package code 2009-09-15 12:42:24 -07:00
defer.go test for defer 2009-01-27 15:08:08 -08:00
empty.go test of new empty productions 2008-10-08 15:33:18 -07:00
env.go Getenv: almost no one wants the error, so make it return a string that may be empty. 2009-06-26 20:28:41 -07:00
errchk handle compiler crash better: 2009-10-09 16:44:40 -07:00
escape1.go Rename function to avoid function redefinition error. Remove 2009-02-05 12:54:15 -08:00
escape.go last round: non-package code 2009-09-15 12:42:24 -07:00
float_lit.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
floatcmp.go gc: fix up floating point NaN comparisons 2009-11-15 17:24:14 -08:00
for.go fix bug depot: 2008-08-11 22:07:49 -07:00
func1.go Check for specific error messages in the testsuite. This 2008-09-19 14:39:49 -07:00
func2.go convert *[] to []. 2008-12-18 22:37:22 -08:00
func3.go change in spec results in non-error 2008-10-06 16:27:14 -07:00
func4.go more 6g reorg; checkpoint. 2009-08-03 11:58:52 -07:00
func5.go add tests for the func()() case 2009-09-14 13:09:53 -07:00
func.go delete export 2009-01-20 14:40:40 -08:00
gc1.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
gc.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
golden.out runtime, type switch: eliminate package global name space assumption 2010-01-25 18:23:20 -08:00
hashmap.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
helloworld.go fix bug depot: 2008-08-11 22:07:49 -07:00
hilbert.go fix test 2009-07-07 10:30:31 -07:00
if1.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
if.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
import1.go make test/fixedbugs save for optional semis 2009-12-10 11:25:54 -08:00
import.go implications of stricter type equality: 2009-05-08 15:40:14 -07:00
indirect1.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
indirect.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
initcomma.go Automated g4 rollback of changelist 25024, 2009-03-03 08:39:12 -08:00
initialize.go last round: non-package code 2009-09-15 12:42:24 -07:00
initializerr.go Adjust expected errors to work with gccgo. 2009-05-31 11:18:52 -07:00
initsyscall.go unused imports 2009-09-17 10:27:04 -07:00
int_lit.go fix up some irregular indentation 2009-08-17 13:30:22 -07:00
intcvt.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
iota.go delete export 2009-01-20 14:40:40 -08:00
literal.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
malloc1.go printf->Printf etc. 2009-01-15 13:48:11 -08:00
mallocrand.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
mallocrep1.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
mallocrep.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
map.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
method1.go Enable these tests. Fix divconst.go and modconst.go to 2009-08-21 15:43:23 -07:00
method2.go delete export 2009-01-20 14:40:40 -08:00
method3.go gc: method expressions on concrete types 2009-12-18 17:24:58 -08:00
method.go gc: method expressions on concrete types 2009-12-18 17:24:58 -08:00
nacl-pass.txt nacl - run tests under emulator. 2009-09-22 16:56:28 -07:00
named1.go gccgo does not distinguish "use" and "assign" in these error 2009-10-20 23:11:00 -07:00
named.go test: comparisons have type bool 2009-09-24 17:54:47 -07:00
nil.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
parentype.go undo 35108 (disallow parens around type in struct literal). 2009-09-29 21:21:14 -07:00
peano.go time tests; sort -nr times.out | sed 10q is illuminating. 2009-10-09 11:18:32 -07:00
printbig.go fix printing of -(1<<63) 2008-09-17 14:08:52 -07:00
range.go Test evaluation of range variables. 2010-01-15 10:40:30 -08:00
rename1.go Recognize gccgo error messages. 2009-10-26 16:06:46 -07:00
rename.go defining package block names must override 2009-09-09 01:01:39 -07:00
run Make tests run on systems missing time utility 2009-11-30 15:07:57 -08:00
run-arm fix arm test to actual return success/fail and expose runcgo 2009-10-05 21:51:34 -07:00
run-nacl make Native Client support build again, 2009-12-04 10:11:32 -08:00
runtime.go Recognize gccgo error message. 2009-11-02 10:12:40 -08:00
sieve.go fix up some irregular indentation 2009-08-17 13:30:22 -07:00
sigchld.go update Go tree to use new syscall package. 2009-06-01 22:14:39 -07:00
simassign.go missed a couple of files in test 2009-12-09 21:39:20 -08:00
stack.go test for new string bug 2009-04-10 06:22:41 -07:00
string_lit.go - gofmt these files 2009-12-09 16:55:03 -08:00
stringrange.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
switch1.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
switch.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
test0.go fix "declared and not used" in tests; 2009-09-14 21:03:53 -07:00
turing.go fix bug depot: 2008-08-11 22:07:49 -07:00
typeswitch1.go update type switch to match spec. 2009-09-09 00:18:16 -07:00
typeswitch2.go runtime, type switch: eliminate package global name space assumption 2010-01-25 18:23:20 -08:00
typeswitch.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
utf.go change utf8.FullRuneInString and utf8.DecodeRuneInString 2009-05-11 14:10:34 -07:00
varinit.go fix up some irregular indentation 2009-08-17 13:30:22 -07:00
vectors.go Change to container/vector interface: 2009-11-24 13:43:18 -08:00