This commit is contained in:
The Miri Conjob Bot 2024-02-18 05:02:03 +00:00
parent 3ef558ec15
commit 7a83e2f30d

View file

@ -7,10 +7,9 @@
// Miri does not implement the codegen-time hack that backs `#[rustc_inherit_overflow_checks]`.
// use std::ops::*;
// Disable _compile-time_ overflow linting
// so that we can test runtime overflow checks
#![allow(arithmetic_overflow)]
#![allow(arithmetic_overflow)]
fn main() {
assert_eq!(-{ -0x80i8 }, -0x80);