aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs/issue22305.go
blob: ec432f9ae8967852454a5956a9b30815d71c3f76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// compile

// Copyright 2017 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 22305: gccgo failed to compile this file.

package main

var F func() [0]func()
var i = 2
var B = F()[i]

func main() {}