aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorletouzey2013-04-10 09:03:08 +0000
committerletouzey2013-04-10 09:03:08 +0000
commit1b9c67865370908efd1ef0250d6305920408697e (patch)
treecfae8041f127183e0fe2f824daed1561d1950b92 /test-suite
parent6f0cc8aa5c679caf1560044bf6640635024cf8c1 (diff)
Equality: avoid some unprotected List.nth (fix #2837)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16392 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/bugs/closed/shouldsucceed/2837.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/shouldsucceed/2837.v b/test-suite/bugs/closed/shouldsucceed/2837.v
new file mode 100644
index 0000000000..5d98446395
--- /dev/null
+++ b/test-suite/bugs/closed/shouldsucceed/2837.v
@@ -0,0 +1,15 @@
+Require Import JMeq.
+
+Axiom test : forall n m : nat, JMeq n m.
+
+Goal forall n m : nat, JMeq n m.
+
+(* I) with no intros nor variable hints, this should produce a regular error
+ instead of Uncaught exception Failure("nth"). *)
+Fail rewrite test.
+
+(* II) with intros but indication of variables, still an error *)
+Fail (intros; rewrite test).
+
+(* III) a working variant: *)
+intros; rewrite (test n m). \ No newline at end of file