xref: /llvm-project/clang/test/CodeGen/asm-errors.c (revision e6485c5873dd235c21060ee0d62a3d21bada4a49)
1 // RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s  > %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