blob: c9271059810c7d91141041954c0bbd9981e36394 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-rustfix
// only-x86_64
#![feature(asm, llvm_asm)]
fn main() {
unsafe {
let x = 1;
let y: i32;
llvm_asm!("" :: "r" (x));
//~^ ERROR legacy asm! syntax is no longer supported
llvm_asm!("" : "=r" (y));
//~^ ERROR legacy asm! syntax is no longer supported
let _ = y;
}
}
|