]> Cypherpunks.ru repositories - gostls13.git/blobdiff - test/floatcmp.go
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / test / floatcmp.go
index f51cbc27775fa01cbcd08dcc901d8d9a8d3fcae7..6c424ccd909307f4bd920a3fcbdc59223797f9e8 100644 (file)
@@ -1,9 +1,11 @@
-// $G $F.go && $L $F.$A && ./$A.out
+// run
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Test floating-point comparison involving NaN.
+
 package main
 
 import "math"
@@ -85,4 +87,7 @@ func main() {
                        println(t.name, "=", t.expr, "want", t.want)
                }
        }
+       if bad {
+               panic("floatcmp failed")
+       }
 }