We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6086dd6 commit 218d8ccCopy full SHA for 218d8cc
tests/mir-opt/const_prop/inherit_overflow.rs
@@ -1,11 +1,14 @@
1
-// skip-filecheck
2
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
3
// unit-test: ConstProp
4
// compile-flags: -Zmir-enable-passes=+Inline
5
+// After inlining, this will contain a `CheckedBinaryOp`.
6
+// Propagating the overflow is ok as codegen will just skip emitting the panic.
7
// EMIT_MIR inherit_overflow.main.ConstProp.diff
8
fn main() {
- // After inlining, this will contain a `CheckedBinaryOp`.
9
- // Propagating the overflow is ok as codegen will just skip emitting the panic.
+ // CHECK-LABEL: fn main(
10
+ // CHECK: {{_.*}} = const (0_u8, true);
11
+ // CHECK: assert(!const true,
12
+ // CHECK: {{_.*}} = const 0_u8;
13
let _ = <u8 as std::ops::Add>::add(255, 1);
14
}
0 commit comments