1 // errorcheck 2 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. 6 7 // Tests for golang.org/issue/13471 8 9 package main 10 11 func main() { 12 const _ int64 = 1e646456992 // ERROR "1e\+646456992 overflows integer" 13 const _ int32 = 1e64645699 // ERROR "1e\+64645699 overflows integer" 14 const _ int16 = 1e6464569 // ERROR "1e\+6464569 overflows integer" 15 const _ int8 = 1e646456 // ERROR "1e\+646456 overflows integer" 16 const _ int = 1e64645 // ERROR "1e\+64645 overflows integer" 17 18 const _ uint64 = 1e646456992 // ERROR "1e\+646456992 overflows integer" 19 const _ uint32 = 1e64645699 // ERROR "1e\+64645699 overflows integer" 20 const _ uint16 = 1e6464569 // ERROR "1e\+6464569 overflows integer" 21 const _ uint8 = 1e646456 // ERROR "1e\+646456 overflows integer" 22 const _ uint = 1e64645 // ERROR "1e\+64645 overflows integer" 23 24 const _ rune = 1e64645 // ERROR "1e\+64645 overflows integer" 25 } 26