| // Copyright 2015 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. |
| // Issue 12577: Test that there are no -0 floating-point constants. |
| if f != 0 || math.Signbit(float64(f)) { |
| println("BUG: got", f, "want 0.0") |
| if f != 0 || math.Signbit(f) { |
| println("BUG: got", f, "want 0.0") |
| if f := -x0; f != 0 || !math.Signbit(float64(f)) { |
| println("BUG: got", f, "want -0.0") |
| if f := -y0; f != 0 || !math.Signbit(f) { |
| println("BUG: got", f, "want -0.0") |