diff --git a/library/std/src/f128/tests.rs b/library/std/src/f128/tests.rs index b64c7f856a15f..147f248769275 100644 --- a/library/std/src/f128/tests.rs +++ b/library/std/src/f128/tests.rs @@ -38,3 +38,9 @@ macro_rules! assert_f128_biteq { ); }; } + +#[test] +fn test_neg_zero() { + // only verify const eval negation until we add the rest of the checks + let _neg_zero: f128 = -0.0; +} diff --git a/library/std/src/f16/tests.rs b/library/std/src/f16/tests.rs index d65c43eca4bb8..ee27d726b3d26 100644 --- a/library/std/src/f16/tests.rs +++ b/library/std/src/f16/tests.rs @@ -44,3 +44,9 @@ macro_rules! assert_f16_biteq { ); }; } + +#[test] +fn test_neg_zero() { + // only verify const eval negation until we add the rest of the checks + let _neg_zero: f16 = -0.0; +} diff --git a/tests/crashes/124583.rs b/tests/crashes/124583.rs deleted file mode 100644 index ffd9d7521add2..0000000000000 --- a/tests/crashes/124583.rs +++ /dev/null @@ -1,5 +0,0 @@ -//@ known-bug: rust-lang/rust#124583 - -fn main() { - let _ = -(-0.0f16); -}