11 #![allow(deprecated)] // llvm_asm!
13 #[cfg(any(target_arch = "x86",
14 target_arch = "x86_64",
16 target_arch = "aarch64",
18 target_arch = "mips64"))]
24 llvm_asm!("nop" : : "r"(x));
26 let z = x; //~ ERROR use of moved value: `x`
33 llvm_asm!("nop" : : "r"(x)); //~ ERROR cannot use
41 llvm_asm!("nop" : "=r"(x)); //~ ERROR cannot assign twice
46 llvm_asm!("nop" : "=r"(a)); // OK, Shallow write to `a`
55 llvm_asm!("nop" : "+r"(x)); //~ ERROR cannot assign twice
59 fn indirect_is_not_init() {
62 llvm_asm!("nop" : "=*r"(x)); //~ ERROR use of possibly-uninitialized variable
70 llvm_asm!("nop" : "+r"(x)); //~ ERROR cannot assign to `x` because it is borrowed
78 llvm_asm!("nop" : : "r"(x), "r"(x) ); //~ ERROR use of moved value