Home | History | Annotate | Download | only in Driver
      1 // RUN: %clang -target i386-unknown-linux -masm=intel -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-INTEL %s
      2 // RUN: %clang -target i386-unknown-linux -masm=att -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-ATT %s
      3 // RUN: %clang -target i386-unknown-linux -S -masm=somerequired %s -### 2>&1 | FileCheck --check-prefix=CHECK-SOMEREQUIRED %s
      4 // RUN: %clang -target arm-unknown-eabi -S -masm=intel %s -### 2>&1 | FileCheck --check-prefix=CHECK-ARM %s
      5 
      6 int f() {
      7 // CHECK-INTEL: -x86-asm-syntax=intel
      8 // CHECK-ATT: -x86-asm-syntax=att
      9 // CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm='
     10 // CHECK-ARM: warning: argument unused during compilation: '-masm=intel'
     11   return 0;
     12 }
     13