mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
793c646b7b
This is the subset of incremental tests that should continue to use `bpass` even after `cpass` is supported, because they (presumably) involve codegen.
10 lines
206 B
Rust
10 lines
206 B
Rust
//@ revisions: bpass1 bpass2 bpass3
|
|
//@ compile-flags: -Coverflow-checks=on
|
|
//@ ignore-backends: gcc
|
|
|
|
#![warn(arithmetic_overflow)]
|
|
|
|
fn main() {
|
|
let _ = 255u8 + 1; //~ WARNING operation will overflow
|
|
}
|