[cfe-commits] r100545 - /cfe/trunk/test/CodeGen/asm-errors.c
Chris Lattner
sabre at nondot.org
Tue Apr 6 11:46:26 PDT 2010
Author: lattner
Date: Tue Apr 6 13:46:25 2010
New Revision: 100545
URL: http://llvm.org/viewvc/llvm-project?rev=100545&view=rev
Log:
add a testcase that the integrated assembler rejects, this verifies
that the integrated assembler is working.
Added:
cfe/trunk/test/CodeGen/asm-errors.c
Added: cfe/trunk/test/CodeGen/asm-errors.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/asm-errors.c?rev=100545&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/asm-errors.c (added)
+++ cfe/trunk/test/CodeGen/asm-errors.c Tue Apr 6 13:46:25 2010
@@ -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;
+}
More information about the cfe-commits
mailing list