From 2a7f5dd469330a25e94cef75f6cea8c3c3ce256c Mon Sep 17 00:00:00 2001 From: herbelin Date: Sun, 19 Jan 2003 23:06:59 +0000 Subject: Tests ltac git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3539 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/failure/ltac1.v | 5 +++++ test-suite/failure/ltac2.v | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 test-suite/failure/ltac1.v create mode 100644 test-suite/failure/ltac2.v diff --git a/test-suite/failure/ltac1.v b/test-suite/failure/ltac1.v new file mode 100644 index 0000000000..d025661906 --- /dev/null +++ b/test-suite/failure/ltac1.v @@ -0,0 +1,5 @@ +(* Check all variables are different in a Context *) +Tactic Definition X := Match Context With [ x:?; x:? |- ? ] -> Apply x. +Goal True->True->True. +Intros. +X. diff --git a/test-suite/failure/ltac2.v b/test-suite/failure/ltac2.v new file mode 100644 index 0000000000..55925a7a62 --- /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" *) -- cgit v1.2.3