Skip to content

Commit

Permalink
Remove f16 const eval crash test
Browse files Browse the repository at this point in the history
Const eval negation was added. This test is now covered by Miri tests
and a new library test.

Fixes <rust-lang#124583>
  • Loading branch information
tgross35 committed Jun 14, 2024
1 parent bf9961c commit 80c32ca
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions library/std/src/f128/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
6 changes: 6 additions & 0 deletions library/std/src/f16/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
5 changes: 0 additions & 5 deletions tests/crashes/124583.rs

This file was deleted.

0 comments on commit 80c32ca

Please sign in to comment.