]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/copy_propagation.rs
Fix wrong argument in autoderef process
[rust.git] / src / test / mir-opt / copy_propagation.rs
1 // EMIT_MIR rustc.test.CopyPropagation.diff
2
3 fn test(x: u32) -> u32 {
4     let y = x;
5     y
6 }
7
8 fn main() {
9     // Make sure the function actually gets instantiated.
10     test(0);
11 }