about summary refs log tree commit diff
path: root/tests/ui/asm/conditionally-sized-ptr.rs
blob: 8ff18fd1da165794d7ef33b782db77d5249d4b51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
//@ needs-asm-support

use std::arch::asm;

fn _f<T>(p: *mut T) {
    unsafe {
        asm!("/* {} */", in(reg) p);
    }
}

fn main() {}