Source file
test/fixedbugs/issue11326b.go
1
2
3
4
5
6
7
8
9
10
11 package main
12
13
14
15 func main() {
16 {
17 const n = 1e646456992
18 const d = 1e646456991
19 x := n / d
20 if x != 10.0 {
21 println("incorrect value:", x)
22 }
23 }
24 {
25 const n = 1e64645699
26 const d = 1e64645698
27 x := n / d
28 if x != 10.0 {
29 println("incorrect value:", x)
30 }
31 }
32 {
33 const n = 1e6464569
34 const d = 1e6464568
35 x := n / d
36 if x != 10.0 {
37 println("incorrect value:", x)
38 }
39 }
40 {
41 const n = 1e646456
42 const d = 1e646455
43 x := n / d
44 if x != 10.0 {
45 println("incorrect value:", x)
46 }
47 }
48 }
49
View as plain text