mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
13 lines
343 B
Rust
13 lines
343 B
Rust
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
|
|
//@ test-mir-pass: GVN
|
|
//@ compile-flags: -C overflow-checks=on -Zdump-mir-exclude-alloc-bytes
|
|
|
|
// EMIT_MIR checked_add.main.GVN.diff
|
|
fn main() {
|
|
// CHECK-LABEL: fn main(
|
|
// CHECK: debug x => [[x:_.*]];
|
|
// CHECK: assert(!const false,
|
|
// CHECK: [[x]] = const 2_u32;
|
|
let x: u32 = 1 + 1;
|
|
}
|