summaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue8154.go
blob: 3ffad34aeea2733f1b24803d6025026368c6fc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile

// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 8154: cmd/5g: ICE in walkexpr walk.c

package main

func main() {
	c := make(chan int)
	_ = [1][]func(){[]func(){func() { <-c }}}
}