test/fixedbugs/bug465.dir/b.go
raw| 1 | // Copyright 2012 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package main |
| 6 | |
| 7 | import "./a" |
| 8 | |
| 9 | func main() { |
| 10 | for _, f := range []func() int{ |
| 11 | a.F1, a.F2, a.F3, a.F4, |
| 12 | a.F5, a.F6, a.F7, a.F8, a.F9} { |
| 13 | if f() > 1 { |
| 14 | panic("f() > 1") |
| 15 | } |
| 16 | } |
| 17 | } |