summaryrefslogtreecommitdiff
path: root/gcc/testsuite/go.test/test/closure.go
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/go.test/test/closure.go')
-rw-r--r--gcc/testsuite/go.test/test/closure.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/testsuite/go.test/test/closure.go b/gcc/testsuite/go.test/test/closure.go
index 3033c02ed81..191514def49 100644
--- a/gcc/testsuite/go.test/test/closure.go
+++ b/gcc/testsuite/go.test/test/closure.go
@@ -76,7 +76,6 @@ func h() {
func newfunc() func(int) int { return func(x int) int { return x } }
-
func main() {
go f()
check([]int{1, 4, 5, 4})
@@ -90,10 +89,6 @@ func main() {
check([]int{100, 200, 101, 201, 500, 101, 201, 500})
x, y := newfunc(), newfunc()
- if x == y {
- println("newfunc returned same func")
- panic("fail")
- }
if x(1) != 1 || y(2) != 2 {
println("newfunc returned broken funcs")
panic("fail")