We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a1b77 commit 7f328d2Copy full SHA for 7f328d2
tests/mir-opt/const_prop/checked_add.rs
@@ -1,9 +1,12 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
// unit-test: ConstProp
4
// compile-flags: -C overflow-checks=on
5
6
// EMIT_MIR checked_add.main.ConstProp.diff
7
fn main() {
+ // CHECK-LABEL: fn main(
8
+ // CHECK: debug x => [[x:_.*]];
9
+ // CHECK: assert(!const false,
10
+ // CHECK: [[x]] = const 2_u32;
11
let x: u32 = 1 + 1;
12
}
0 commit comments