summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/dataflow-const-prop/cast.rs
blob: c87872609dcf77f13b27a0c0ce1a848be56f1b85 (plain)
1
2
3
4
5
6
7
8
// skip-filecheck
// unit-test: DataflowConstProp

// EMIT_MIR cast.main.DataflowConstProp.diff
fn main() {
    let a = 257;
    let b = a as u8 + 1;
}