xref: /llvm-project/clang/test/CodeGen/asm-errors.c (revision 66ce9651f1ecd959d49ea5541315434b64acca25)
1 // RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
2 // RUN: FileCheck %s < %t
3 
4 int test1(int X) {
5 // CHECK: error: unrecognized instruction
6   __asm__ ("abc incl    %0" : "+r" (X));
7   return X;
8 }
9