3 // Copyright 2015 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.
7 // Tests correct reporting of line numbers for errors involving iota,
15 bard // ERROR "constant 256 overflows byte"
19 c = len([1 - iota]int{})
21 e // ERROR "array bound must be non-negative" "const initializer len\(composite literal\) is not a constant"
22 f // ERROR "array bound must be non-negative" "const initializer len\(composite literal\) is not a constant"