]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/rustfix-asm.fixed
Merge commit '9e3cd88718cd1912a515d26dbd9c4019fd5a9577' into clippyup
[rust.git] / src / test / ui / asm / rustfix-asm.fixed
1 // run-rustfix
2 // only-x86_64
3
4 #![feature(asm, llvm_asm)]
5
6 fn main() {
7     unsafe {
8         let x = 1;
9         let y: i32;
10         llvm_asm!("" :: "r" (x));
11         //~^ ERROR the legacy LLVM-style asm! syntax is no longer supported
12         llvm_asm!("" : "=r" (y));
13         //~^ ERROR the legacy LLVM-style asm! syntax is no longer supported
14         let _ = y;
15     }
16 }