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