Source file test/fixedbugs/issue38359.go

     1  // compile
     2  
     3  // Copyright 2020 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  // Make sure NaN-NaN compiles correctly.
     8  
     9  package p
    10  
    11  func f() {
    12  	var st struct {
    13  		f    float64
    14  		_, _ string
    15  	}
    16  
    17  	f := 1e308
    18  	st.f = 2*f - 2*f
    19  }
    20  

View as plain text