blob: 571a5cc4e4dae9365299375148d79616a9a8ddbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on
// EMIT_MIR checked_add.main.ConstProp.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;
}
|