3 // Copyright 2011 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
12 // Test unclosed closure.
15 a, b, c, d := func(i int) (p int, q int, r int, s int) { return 1, i, 3, x }(2)
17 if a != 1 || b != 2 || c != 3 || d != 4 {
18 println("1# abcd: expected 1 2 3 4 got", a, b, c, d)
25 gf = func(i int) (p int, q int, r int, s int) { return 1, i, 3, x }
29 if a != 1 || b != 2 || c != 3 || d != 4 {
30 println("2# abcd: expected 1 2 3 4 got", a, b, c, d)
36 var gf func(int) (int, int, int, int)