aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/asm-errors.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-06 18:46:25 +0000
committerChris Lattner <sabre@nondot.org>2010-04-06 18:46:25 +0000
commit914803f5d5e201b605f90e5342f3963e35124055 (patch)
tree50030733941fcdb05e02b6e5ad103532543173c5 /test/CodeGen/asm-errors.c
parent6da9eb661616ffd702deeb37e6872dd2294c8fef (diff)
add a testcase that the integrated assembler rejects, this verifies
that the integrated assembler is working. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/asm-errors.c')
-rw-r--r--test/CodeGen/asm-errors.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/asm-errors.c b/test/CodeGen/asm-errors.c
new file mode 100644
index 0000000000..7323e61b59
--- /dev/null
+++ b/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;
+}