go.tools/ssa/interp: enable tests of builtin(f()) where f has multiple results.

R=gri
CC=golang-dev
https://golang.org/cl/14408043
This commit is contained in:
Alan Donovan 2013-10-04 16:52:12 -04:00
parent 5d0990f591
commit eb632ebaca
1 changed files with 6 additions and 8 deletions

View File

@ -51,14 +51,12 @@ func main() {
f1v(g()) f1v(g())
f2(g()) f2(g())
f2v(g()) f2v(g())
// TODO(gri): the typechecker still doesn't support these cases correctly. if c := complex(complexArgs()); c != 5+7i {
// if c := complex(complexArgs()); c != 5+7i { panic(c)
// panic(c) }
// } if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" {
// if s := append(appendArgs()); len(s) != 2 || s[0] != "foo" || s[1] != "bar" { panic(s)
// panic(s) }
// }
i, ok := h() i, ok := h()
if !ok || i.(string) != "hi" { if !ok || i.(string) != "hi" {
panic(i) panic(i)