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