rust/tests/mir-opt/dataflow-const-prop/tuple.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
260 B
Rust
Raw Normal View History

// skip-filecheck
// unit-test: DataflowConstProp
2023-09-17 04:35:06 -05:00
// EMIT_MIR_FOR_EACH_BIT_WIDTH
// EMIT_MIR tuple.main.DataflowConstProp.diff
fn main() {
let mut a = (1, 2);
let b = a.0 + a.1 + 3;
a = (2, 3);
let c = a.0 + a.1 + b;
let d = (b, a, c);
}