mirror of
https://github.com/golang/go
synced 2024-11-05 12:16:10 -07:00
d1cc7f70cd
Fixes #13940. Change-Id: I00fe377c949e5be4cbc035f6ca18e547e326bfba Reviewed-on: https://go-review.googlesource.com/19856 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
12 lines
268 B
Go
12 lines
268 B
Go
// errorcheck
|
|
|
|
// Copyright 2009 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 main
|
|
func f() {
|
|
v := 1 << 1025; // ERROR "overflow|shift count too large"
|
|
_ = v
|
|
}
|