about summary refs log tree commit diff
path: root/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-09-07 17:13:58 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-09-11 16:29:41 +0000
commitb851e554ddf64d4889d305ee4d8972028bc86b90 (patch)
tree70633fcb6d6610beff833f6d24520732bf740da8 /tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff
parent82f0468009da17c14a3ab69d01526db848cf8b55 (diff)
downloadrust-b851e554ddf64d4889d305ee4d8972028bc86b90.tar.gz
rust-b851e554ddf64d4889d305ee4d8972028bc86b90.zip
Support CopyForDeref.
Diffstat (limited to 'tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff')
-rw-r--r--tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff b/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff
index 89e37cc04dc..71a28f2165b 100644
--- a/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff
+++ b/tests/mir-opt/dataflow-const-prop/struct.main.DataflowConstProp.diff
@@ -88,16 +88,20 @@
           _17 = deref_copy (*_16);
           StorageLive(_12);
           _18 = deref_copy (*_16);
-          _12 = ((*_18).0: S);
+-         _12 = ((*_18).0: S);
++         _12 = const S(1_i32);
           StorageLive(_13);
           _19 = deref_copy (*_16);
-          _13 = ((*_19).1: u8);
+-         _13 = ((*_19).1: u8);
++         _13 = const 5_u8;
           StorageLive(_14);
           _20 = deref_copy (*_16);
-          _14 = ((*_20).2: f32);
+-         _14 = ((*_20).2: f32);
++         _14 = const 7f32;
           StorageLive(_15);
           _21 = deref_copy (*_16);
-          _15 = ((*_21).3: S);
+-         _15 = ((*_21).3: S);
++         _15 = const S(13_i32);
           StorageDead(_16);
           _0 = const ();
           StorageDead(_15);