| // errorcheck | |
| // Copyright 2012 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 s int | |
| var _ = 1 << ((1 << s) + 1) | |
| var _ = 1 << ((-1 << s) + 1) // ERROR "overflows uint" | |
| var _ = 1 << ((1.0 << s) + 1) |