Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 80c32ca

Browse files
committedJun 14, 2024·
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 <#124583>
1 parent bf9961c commit 80c32ca

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed
 

‎library/std/src/f128/tests.rs

+6
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ macro_rules! assert_f128_biteq {
3838
);
3939
};
4040
}
41+
42+
#[test]
43+
fn test_neg_zero() {
44+
// only verify const eval negation until we add the rest of the checks
45+
let _neg_zero: f128 = -0.0;
46+
}

‎library/std/src/f16/tests.rs

+6
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ macro_rules! assert_f16_biteq {
4444
);
4545
};
4646
}
47+
48+
#[test]
49+
fn test_neg_zero() {
50+
// only verify const eval negation until we add the rest of the checks
51+
let _neg_zero: f16 = -0.0;
52+
}

‎tests/crashes/124583.rs

-5
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.