summaryrefslogtreecommitdiff
path: root/test-suite/failure/ltac2.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/failure/ltac2.v')
-rw-r--r--test-suite/failure/ltac2.v6
1 files changed, 6 insertions, 0 deletions
diff --git a/test-suite/failure/ltac2.v b/test-suite/failure/ltac2.v
new file mode 100644
index 00000000..55925a7a
--- /dev/null
+++ b/test-suite/failure/ltac2.v
@@ -0,0 +1,6 @@
+(* Check that Match arguments are forbidden *)
+Tactic Definition E x := Apply x.
+Goal True->True.
+E (Match Context With [ |- ? ] -> Intro H).
+(* Should fail with "Immediate Match producing tactics not allowed in
+ local definitions" *)