about summary refs log tree commit diff
path: root/src/test/ui/asm/inline-syntax.rs
blob: ec8ff0718857be38efa237ef7b7eb81cb63ebbe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![feature(asm, llvm_asm)]

fn main() {
    unsafe {
        asm!(".intel_syntax noprefix", "nop");
        //~^ ERROR intel sytnax is the default syntax
        asm!(".intel_syntax aaa noprefix", "nop");
        //~^ ERROR intel sytnax is the default syntax
        asm!(".att_syntax noprefix", "nop");
        //~^ ERROR using the .att_syntax directive may cause issues
        asm!(".att_syntax bbb noprefix", "nop");
        //~^ ERROR using the .att_syntax directive may cause issues
    }
}