about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/struct.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-09-12 16:44:53 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-10-21 16:20:46 +0000
commit31d101093c134e69a31ba58893e56647a5831299 (patch)
treeb4a2819f41539f741446ecf77ee398ab9c70241a /tests/mir-opt/dataflow-const-prop/struct.rs
parent249624b5043013d18c00f0401ca431c1a6baa8cd (diff)
downloadrust-31d101093c134e69a31ba58893e56647a5831299.tar.gz
rust-31d101093c134e69a31ba58893e56647a5831299.zip
Generate ValTrees in DataflowConstProp.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/struct.rs')
-rw-r--r--tests/mir-opt/dataflow-const-prop/struct.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/struct.rs b/tests/mir-opt/dataflow-const-prop/struct.rs
index 7b0646a5356..5c6edeb3866 100644
--- a/tests/mir-opt/dataflow-const-prop/struct.rs
+++ b/tests/mir-opt/dataflow-const-prop/struct.rs
@@ -20,4 +20,6 @@ fn main() {
 
     static STAT: &BigStruct = &BigStruct(S(1), 5, 7., S(13));
     let BigStruct(a, b, c, d) = *STAT;
+
+    let bs = BigStruct(a, b, c, d);
 }