blob: 17c639358b0bd141014536b06829ca1066d8335a [file] [log] [blame]
Eric Christopher254b2632014-05-13 20:16:43 +00001// 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
Nico Weber8277d9c2014-05-13 11:11:24 +00005
6int f() {
Eric Christopher254b2632014-05-13 20:16:43 +00007// CHECK-INTEL: -x86-asm-syntax=intel
8// CHECK-ATT: -x86-asm-syntax=att
Nico Weber8277d9c2014-05-13 11:11:24 +00009// CHECK-SOMEREQUIRED: error: unsupported argument 'somerequired' to option 'masm='
10// CHECK-ARM: warning: argument unused during compilation: '-masm=intel'
11 return 0;
12}