1
Fork 0

Properly support thin ptrs that are only thin due to their param-env in asm macro

This commit is contained in:
Michael Goulet 2025-02-24 16:12:43 +00:00
parent bb029a1d3f
commit 04c00585c3
3 changed files with 16 additions and 5 deletions

View file

@ -0,0 +1,12 @@
//@ check-pass
//@ needs-asm-support
use std::arch::asm;
fn _f<T>(p: *mut T) {
unsafe {
asm!("/* {} */", in(reg) p);
}
}
fn main() {}