aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-10-31 13:08:09 +0100
committerPierre-Marie Pédrot2019-10-31 13:08:09 +0100
commit1498e666133d27ea57ed5b51038dc11c855b3437 (patch)
tree57866d832c525c89f77f02fe36fc7ba840360a6c
parent43bd5e05ddd23378fc9d2f82a07a4e3153819521 (diff)
parent11231a495cc3dc2b8a754dac77d7739c5b54ac30 (diff)
Merge PR #10995: add test for #4502 (fixed by unknown commit)
Reviewed-by: ppedrot
-rw-r--r--test-suite/bugs/closed/bug_4502.v17
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_4502.v b/test-suite/bugs/closed/bug_4502.v
new file mode 100644
index 0000000000..f1dcae9773
--- /dev/null
+++ b/test-suite/bugs/closed/bug_4502.v
@@ -0,0 +1,17 @@
+Require Import FunInd.
+
+Set Universe Polymorphism.
+Set Primitive Projections.
+Set Implicit Arguments.
+Set Strongly Strict Implicit.
+
+Function first_false (n : nat) (f : nat -> bool) : option nat :=
+ match n with
+ | O => None
+ | S m =>
+ match first_false m f with
+ | (Some _) as s => s
+ | None => if f m then None else Some m
+ end
+ end.
+(* undefined universe *)