17 lines · c
1// REQUIRES: x86-registered-target2 3// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&14// RUN: FileCheck %s < %t5// RUN: not %clang -target i386-apple-darwin10 -fembed-bitcode -c %s -o /dev/null 2>&1 | \6// RUN: FileCheck --check-prefix=CRASH-REPORT %s7// CRASH-REPORT: <inline asm>:8// CRASH-REPORT: error: invalid instruction mnemonic 'abc'9// CRASH-REPORT: error: cannot compile inline asm10// CRASH-REPORT-NOT: note: diagnostic msg:11 12int test1(int X) {13// CHECK: error: invalid instruction mnemonic 'abc'14 __asm__ ("abc incl %0" : "+r" (X));15 return X;16}17