2023-10-16 12:36:39 -05:00
|
|
|
// skip-filecheck
|
2022-10-24 19:27:27 -05:00
|
|
|
// unit-test: DataflowConstProp
|
2023-09-17 04:35:06 -05:00
|
|
|
// EMIT_MIR_FOR_EACH_BIT_WIDTH
|
2022-10-24 19:27:27 -05:00
|
|
|
|
|
|
|
// EMIT_MIR tuple.main.DataflowConstProp.diff
|
|
|
|
fn main() {
|
|
|
|
let mut a = (1, 2);
|
2022-11-09 11:03:30 -06:00
|
|
|
let b = a.0 + a.1 + 3;
|
2022-10-24 19:27:27 -05:00
|
|
|
a = (2, 3);
|
2022-11-09 11:03:30 -06:00
|
|
|
let c = a.0 + a.1 + b;
|
2023-09-12 11:44:53 -05:00
|
|
|
|
|
|
|
let d = (b, a, c);
|
2022-10-24 19:27:27 -05:00
|
|
|
}
|