]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/rustfix-asm.fixed
Special sync of 'e89801553ddbaccdeb2eac4db08900edb51ac7ff'
[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 }