summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/aggregate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mir-opt/const_prop/aggregate.rs')
-rw-r--r--tests/mir-opt/const_prop/aggregate.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/mir-opt/const_prop/aggregate.rs b/tests/mir-opt/const_prop/aggregate.rs
new file mode 100644
index 000000000..6a3080384
--- /dev/null
+++ b/tests/mir-opt/const_prop/aggregate.rs
@@ -0,0 +1,8 @@
+// unit-test: ConstProp
+// compile-flags: -O
+
+// EMIT_MIR aggregate.main.ConstProp.diff
+// EMIT_MIR aggregate.main.PreCodegen.after.mir
+fn main() {
+ let x = (0, 1, 2).1 + 0;
+}