blob: ecd0c2f9734f15b9bcd722bd1ef1737180d03d01 [file] [log] [blame]
// build-pass
// only-x86_64
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
unsafe {
// "nop" :: "r"(x) : "eax" : "volatile"
let x = 10;
llvm_asm!("\x6Eop" :: "\x72"(x) : "\x65ax" : "\x76olatile");
}
}