rust/tests/mir-opt/issue_78192.rs

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

12 lines
202 B
Rust
Raw Normal View History

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
// EMIT_MIR issue_78192.f.InstCombine.diff