1
0
mirror of https://github.com/golang/go synced 2024-11-14 21:20:27 -07:00
go/test/fixedbugs/issue13471.go
Robert Griesemer 43c7b214db [dev.typeparams] cmd/compile/internal/types2: adjusted qualified identifier error message for compiler
Also: Triaged/adjusted some more test/fixedbugs tests.
Change-Id: I050847b6dfccc7f301f8100bfdbe84e0487e33fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/276512
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2020-12-09 23:56:19 +00:00

26 lines
1.0 KiB
Go

// errorcheck
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Tests for golang.org/issue/13471
package main
func main() {
const _ int64 = 1e646456992 // ERROR "integer too large|truncated to .*"
const _ int32 = 1e64645699 // ERROR "integer too large|truncated to .*"
const _ int16 = 1e6464569 // ERROR "integer too large|truncated to .*"
const _ int8 = 1e646456 // ERROR "integer too large|truncated to .*"
const _ int = 1e64645 // ERROR "integer too large|truncated to .*"
const _ uint64 = 1e646456992 // ERROR "integer too large|truncated to .*"
const _ uint32 = 1e64645699 // ERROR "integer too large|truncated to .*"
const _ uint16 = 1e6464569 // ERROR "integer too large|truncated to .*"
const _ uint8 = 1e646456 // ERROR "integer too large|truncated to .*"
const _ uint = 1e64645 // ERROR "integer too large|truncated to .*"
const _ rune = 1e64645 // ERROR "integer too large|truncated to .*"
}