mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 13:07:37 +00:00
13 lines
153 B
Rust
13 lines
153 B
Rust
![]() |
//@ check-pass
|
||
|
//@ needs-asm-support
|
||
|
|
||
|
use std::arch::asm;
|
||
|
|
||
|
fn _f<T>(p: *mut T) {
|
||
|
unsafe {
|
||
|
asm!("/* {} */", in(reg) p);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|