modernc.org/gc@v1.0.1-0.20240304020402-f0dba7c97c2b/testdata/errchk/test/fixedbugs/issue13471.go (about) 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 "integer too large" 13 const _ int32 = 1e64645699 // ERROR "integer too large" 14 const _ int16 = 1e6464569 // ERROR "integer too large" 15 const _ int8 = 1e646456 // ERROR "integer too large" 16 const _ int = 1e64645 // ERROR "integer too large" 17 18 const _ uint64 = 1e646456992 // ERROR "integer too large" 19 const _ uint32 = 1e64645699 // ERROR "integer too large" 20 const _ uint16 = 1e6464569 // ERROR "integer too large" 21 const _ uint8 = 1e646456 // ERROR "integer too large" 22 const _ uint = 1e64645 // ERROR "integer too large" 23 24 const _ rune = 1e64645 // ERROR "integer too large" 25 }