aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnrico Tassi2019-02-22 14:09:43 +0100
committerEnrico Tassi2019-02-25 11:33:18 +0100
commit5ee6581330ac77596d31dddc1bf4fc09e585b1f6 (patch)
tree53038b6d6e19f9886afc50a06da8e6572ea477db
parent8785269bb1b514f11bef7a56baeaef0cf3eaa452 (diff)
add testcase for fix
-rw-r--r--test-suite/bugs/closed/bug_9598.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9598.v b/test-suite/bugs/closed/bug_9598.v
index 917bf92a87..daf4d3f847 100644
--- a/test-suite/bugs/closed/bug_9598.v
+++ b/test-suite/bugs/closed/bug_9598.v
@@ -9,3 +9,15 @@ Module case.
Fixpoint rec_ko (x : nat) : nat := fst (alias_K 0 (rec_ko x)).
End case.
+
+Module fixpoint.
+
+ Inductive pair := K (n1 : nat) (n2 : nat).
+ Fixpoint fst (p : pair) : nat := match p with K n _ => n end.
+
+ Definition alias_K a b := K a b.
+
+ Fixpoint rec (x : nat) : nat := fst (K 0 (rec x)).
+ Fixpoint rec_ko (x : nat) : nat := fst (alias_K 0 (rec_ko x)).
+
+End fixpoint.