...
Run Format

Source file test/fixedbugs/issue11326b.go

Documentation: test/fixedbugs

     1  // run
     2  
     3  // Copyright 2015 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  // Tests for golang.org/issue/11326.
    10  
    11  func main() {
    12  	{
    13  		const n = 1e646456992
    14  		const d = 1e646456991
    15  		x := n / d
    16  		if x != 10.0 {
    17  			println("incorrect value:", x)
    18  		}
    19  	}
    20  	{
    21  		const n = 1e64645699
    22  		const d = 1e64645698
    23  		x := n / d
    24  		if x != 10.0 {
    25  			println("incorrect value:", x)
    26  		}
    27  	}
    28  	{
    29  		const n = 1e6464569
    30  		const d = 1e6464568
    31  		x := n / d
    32  		if x != 10.0 {
    33  			println("incorrect value:", x)
    34  		}
    35  	}
    36  	{
    37  		const n = 1e646456
    38  		const d = 1e646455
    39  		x := n / d
    40  		if x != 10.0 {
    41  			println("incorrect value:", x)
    42  		}
    43  	}
    44  }
    45  

View as plain text