blob: 01d8fd34b68a824513cb0d912f0b9a375e29e75b [file] [log] [blame]
// run-rustfix
// only-x86_64
#![feature(asm, llvm_asm)]
fn main() {
unsafe {
let x = 1;
let y: i32;
llvm_asm!("" :: "r" (x));
//~^ ERROR the legacy LLVM-style asm! syntax is no longer supported
llvm_asm!("" : "=r" (y));
//~^ ERROR the legacy LLVM-style asm! syntax is no longer supported
let _ = y;
}
}