]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/copy_propagation.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / mir-opt / copy_propagation.rs
1 fn test(x: u32) -> u32 {
2 let y = x;
3 y
4 }
5
6 fn main() {
7 // Make sure the function actually gets instantiated.
8 test(0);
9 }
10
11 // END RUST SOURCE
12 // START rustc.test.CopyPropagation.before.mir
13 // bb0: {
14 // ...
15 // _2 = _1;
16 // ...
17 // _0 = _2;
18 // ...
19 // return;
20 // }
21 // END rustc.test.CopyPropagation.before.mir
22 // START rustc.test.CopyPropagation.after.mir
23 // bb0: {
24 // ...
25 // _0 = _1;
26 // ...
27 // return;
28 // }
29 // END rustc.test.CopyPropagation.after.mir