summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/mir-opt/const_prop/mutable_variable_aggregate.rs')
-rw-r--r--src/test/mir-opt/const_prop/mutable_variable_aggregate.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs b/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs
new file mode 100644
index 000000000..e0b4b77ba
--- /dev/null
+++ b/src/test/mir-opt/const_prop/mutable_variable_aggregate.rs
@@ -0,0 +1,8 @@
+// compile-flags: -O
+
+// EMIT_MIR mutable_variable_aggregate.main.ConstProp.diff
+fn main() {
+ let mut x = (42, 43);
+ x.1 = 99;
+ let y = x;
+}