]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/issue-99122.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / asm / issue-99122.rs
1 // needs-asm-support
2 // only-x86_64
3
4 pub unsafe fn test() {
5 let pointer = 1u32 as *const _;
6 //~^ ERROR cannot cast to a pointer of an unknown kind
7 core::arch::asm!(
8 "nop",
9 in("eax") pointer,
10 );
11 }
12
13 fn main() {}