rust/tests/mir-opt/issue_78192.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
221 B
Rust
Raw Normal View History

// skip-filecheck
2021-11-06 09:56:29 -05:00
// compile-flags: -Zmir-opt-level=1 -Zinline-mir
pub fn f<T>(a: &T) -> *const T {
let b: &*const T = &(a as *const T);
*b
}
fn main() {
f(&2);
}
2021-11-06 09:56:29 -05:00
2023-05-06 22:20:58 -05:00
// EMIT_MIR issue_78192.f.InstSimplify.diff