From 80c32ca7773a51d50017ea53c63b0b97df6d25c7 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Thu, 13 Jun 2024 15:25:22 -0500 Subject: [PATCH] Remove f16 const eval crash test Const eval negation was added. This test is now covered by Miri tests and a new library test. Fixes --- library/std/src/f128/tests.rs | 6 ++++++ library/std/src/f16/tests.rs | 6 ++++++ tests/crashes/124583.rs | 5 ----- 3 files changed, 12 insertions(+), 5 deletions(-) delete mode 100644 tests/crashes/124583.rs 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); -}