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