diff options
| author | Enrico Tassi | 2019-02-22 14:09:43 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-02-25 11:33:18 +0100 |
| commit | 5ee6581330ac77596d31dddc1bf4fc09e585b1f6 (patch) | |
| tree | 53038b6d6e19f9886afc50a06da8e6572ea477db | |
| parent | 8785269bb1b514f11bef7a56baeaef0cf3eaa452 (diff) | |
add testcase for fix
| -rw-r--r-- | test-suite/bugs/closed/bug_9598.v | 12 |
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. |
