]> git.proxmox.com Git - rustc.git/blame - tests/mir-opt/const_prop/mutable_variable_aggregate_partial_read.rs
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / mir-opt / const_prop / mutable_variable_aggregate_partial_read.rs
CommitLineData
ed00b5ec 1// skip-filecheck
fe692bf9 2// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
49aad941 3// unit-test: ConstProp
f9f354fc 4
3dfed10e 5// EMIT_MIR mutable_variable_aggregate_partial_read.main.ConstProp.diff
f9f354fc
XL
6fn main() {
7 let mut x: (i32, i32) = foo();
8 x.1 = 99;
9 x.0 = 42;
10 let y = x.1;
11}
12
13#[inline(never)]
14fn foo() -> (i32, i32) {
15 unimplemented!()
16}