Fix the clang-wpa example.
[clang.git] / test / CodeGen / asm-errors.c
blobc5b36c7fed40c837da3bc16a5d23d1aa8d9c7723
1 // RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
2 // RUN: FileCheck %s < %t
4 int test1(int X) {
5 // CHECK: error: invalid instruction mnemonic 'abc'
6 __asm__ ("abc incl %0" : "+r" (X));
7 return X;