diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-06 18:46:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-06 18:46:25 +0000 |
commit | e6485c5873dd235c21060ee0d62a3d21bada4a49 (patch) | |
tree | ed79afb2b84db9a290c699601529b7ef634240db /clang/test/CodeGen/asm-errors.c | |
parent | 04397890233b29b44fe70eb27e51df6164ea1818 (diff) | |
download | bcm5719-llvm-e6485c5873dd235c21060ee0d62a3d21bada4a49.tar.gz bcm5719-llvm-e6485c5873dd235c21060ee0d62a3d21bada4a49.zip |
add a testcase that the integrated assembler rejects, this verifies
that the integrated assembler is working.
llvm-svn: 100545
Diffstat (limited to 'clang/test/CodeGen/asm-errors.c')
-rw-r--r-- | clang/test/CodeGen/asm-errors.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm-errors.c b/clang/test/CodeGen/asm-errors.c new file mode 100644 index 00000000000..7323e61b591 --- /dev/null +++ b/clang/test/CodeGen/asm-errors.c @@ -0,0 +1,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; +} |