18 lines · c
1// RUN: %clang --target=i386-unknown-linux -masm=intel -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-INTEL %s2// RUN: %clang --target=i386-unknown-linux -masm=att -S %s -### 2>&1 | FileCheck --check-prefix=CHECK-ATT %s3// RUN: not %clang --target=i386-unknown-linux -S -masm=somerequired %s -### 2>&1 | FileCheck --check-prefix=CHECK-SOMEREQUIRED %s4// RUN: %clang --target=arm-unknown-eabi -S -masm=intel %s -### 2>&1 | FileCheck --check-prefix=CHECK-ARM %s5// RUN: %clang_cl --target=x86_64 /FA -### -- %s 2>&1 | FileCheck --check-prefix=CHECK-CL %s6 7int f() {8// CHECK-INTEL: -x86-asm-syntax=intel9// CHECK-INTEL: -inline-asm=intel10// CHECK-ATT: -x86-asm-syntax=att11// CHECK-ATT: -inline-asm=att12// CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option '-masm='13// CHECK-ARM: warning: argument unused during compilation: '-masm=intel'14// CHECK-CL: -x86-asm-syntax=intel15// CHECK-CL-NOT: -inline-asm=intel16 return 0;17}18