mirror of
https://github.com/golang/go
synced 2024-11-17 11:14:46 -07:00
2c11164db5
Fixes #11590. Change-Id: I4144107334604a2cc98c7984df3b5d4cde3d30af Reviewed-on: https://go-review.googlesource.com/16920 Reviewed-by: Ian Lance Taylor <iant@golang.org>
12 lines
393 B
Go
12 lines
393 B
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.
|
|
|
|
package p
|
|
|
|
var _ = int8(4) * 300 // ERROR "constant overflows int8"
|
|
var _ = complex64(1) * 1e200 // ERROR "constant overflows complex64"
|
|
var _ = complex128(1) * 1e500 // ERROR "constant overflows complex128"
|