1// errorcheck
2
3// Copyright 2019 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.
6
7// Verify that we only get one error per invalid integer literal.
8
9package p
10
11const (
12	_ = 1_       // ERROR "'_' must separate successive digits"
13	_ = 0b       // ERROR "binary literal has no digits|invalid numeric literal"
14	_ = 0o       // ERROR "octal literal has no digits|invalid numeric literal"
15	_ = 0x       // ERROR "hexadecimal literal has no digits|invalid numeric literal"
16	_ = 0xde__ad // ERROR "'_' must separate successive digits"
17)
18