summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/ConstraintChecking2.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/ConstraintChecking2.td')
-rw-r--r--llvm/test/TableGen/ConstraintChecking2.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/TableGen/ConstraintChecking2.td b/llvm/test/TableGen/ConstraintChecking2.td
new file mode 100644
index 00000000000..65ec882b18f
--- /dev/null
+++ b/llvm/test/TableGen/ConstraintChecking2.td
@@ -0,0 +1,6 @@
+// RUN: not llvm-tblgen -gen-asm-writer -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s
+
+include "ConstraintChecking.inc"
+
+// CHECK: [[FILE]]:[[@LINE+1]]:1: error: Illegal format for @earlyclobber constraint in 'Foo'
+def Foo : TestInstructionWithConstraints<"@earlyclobber ">;
OpenPOWER on IntegriCloud