tools/ssa/interp/testdata
Alan Donovan 8c66e887f7 go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through.
Although such a control-flow path is impossible by
construction, we must avoid no-arg returns (even if
unreachable) in non-void functions.

Tested by adding a sanity-check that ssa.Return has the correct arity.
Also: added ssautil.Switches() test.

Fixes golang/go#7702

R=gri, axwalk
CC=golang-codereviews
https://golang.org/cl/46520043
2014-01-02 15:12:23 -05:00
..
a_test.go go.tools/ssa: don't synthesize an empty "testmain" package. 2013-11-13 16:05:13 -05:00
b_test.go go.tools/ssa: don't synthesize an empty "testmain" package. 2013-11-13 16:05:13 -05:00
boundmeth.go go.tools/ssa: (another) major refactoring of method-set logic. 2013-07-26 11:22:34 -04:00
coverage.go go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through. 2014-01-02 15:12:23 -05:00
fieldprom.go go.tools/ssa: use go/types.LookupFieldOrMethod, and simplify. 2013-07-01 15:17:36 -04:00
ifaceconv.go go.tools/ssa: tests of method promotion and of interface conversion + bugfixes. 2013-07-26 21:49:27 -04:00
ifaceprom.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
initorder.go go.tools/ssa: fix a package-level var initialization order bug. 2013-07-29 14:24:09 -04:00
methprom.go go.tools/ssa: tests of method promotion and of interface conversion + bugfixes. 2013-07-26 21:49:27 -04:00
mrvchain.go go.tools/ssa/interp: enable tests of builtin(f()) where f has multiple results. 2013-10-04 16:52:12 -04:00
recover.go go.tools/ssa/interp: fix bug: recovered panic without NRPs should return zero values. 2013-12-05 21:22:57 -05:00