aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/asm-errors.c
blob: 7323e61b591a238012359654fcb2d5f1f21a9860 (plain) (blame)
1
2
3
4
5
6
7
8
// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s  > %t 2>&1
// RUN: FileCheck %s < %t

int test1(int X) {
// CHECK: error: unrecognized instruction
  __asm__ ("abc incl    %0" : "+r" (X));
  return X;
}