mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 12:07:40 +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() {}
|