summaryrefslogtreecommitdiffstats
path: root/llvm/test/TableGen/ConstraintChecking4.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/TableGen/ConstraintChecking4.td')
-rw-r--r--llvm/test/TableGen/ConstraintChecking4.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/TableGen/ConstraintChecking4.td b/llvm/test/TableGen/ConstraintChecking4.td
new file mode 100644
index 00000000000..bd511eb1132
--- /dev/null
+++ b/llvm/test/TableGen/ConstraintChecking4.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: Output operands '$dest1' and '$dest2' of 'Foo' cannot be tied!
+def Foo : TestInstructionWithConstraints<"$dest1 = $dest2">;
OpenPOWER on IntegriCloud