Debian Codegraph @

test/fixedbugs/issue68322.go

raw
1 // run
2
3 // Copyright 2024 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 import "math"
10
11 var doNotFold = 18446744073709549568.0
12
13 func main() {
14 if math.Trunc(doNotFold) != doNotFold {
15 panic("big (over 2**63-1) math.Trunc is incorrect")
16 }
17 }