blob: d3c42e3eb0bb10dca550edf16fb8f9283379ee38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
// unit-test: ConstProp
// compile-flags: -C overflow-checks=on
// EMIT_MIR indirect.main.ConstProp.diff
fn main() {
// CHECK-LABEL: fn main(
// CHECK: debug x => [[x:_.*]];
// CHECK: [[x]] = const 3_u8;
let x = (2u32 as u8) + 1;
}
|