test/fixedbugs/issue20232.go
raw| 1 | // errorcheck -d=panic |
| 2 | |
| 3 | // Copyright 2017 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 | package main |
| 8 | |
| 9 | const x = 6e5518446744 // ERROR "malformed constant: 6e5518446744" |
| 10 | const _ = x * x |
| 11 | const _ = 1e-1000000000 |
| 12 | const _ = 1e+1000000000 // ERROR "malformed constant: 1e\+1000000000" |