diff options
| author | herbelin | 2003-01-19 23:06:59 +0000 |
|---|---|---|
| committer | herbelin | 2003-01-19 23:06:59 +0000 |
| commit | 2a7f5dd469330a25e94cef75f6cea8c3c3ce256c (patch) | |
| tree | 73c5d261e73dd620ee9bdb90944e7c1b666d2514 | |
| parent | d3950750f636057674c0ee527d5c05937faf90a2 (diff) | |
Tests ltac
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@3539 85f007b7-540e-0410-9357-904b9bb8a0f7
| -rw-r--r-- | test-suite/failure/ltac1.v | 5 | ||||
| -rw-r--r-- | test-suite/failure/ltac2.v | 6 |
2 files changed, 11 insertions, 0 deletions
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" *) |
