diff options
| author | Enrico Tassi | 2019-02-21 17:47:25 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2019-02-25 11:33:15 +0100 |
| commit | abdb6692d8be2250685e4d78cdd84711f4d493d6 (patch) | |
| tree | 929f7459ee8c40e0773355163a54b73397a6216a | |
| parent | f3cb208d3172d0726e18f45a03d0a18dee2b4743 (diff) | |
add test case for "match"
| -rw-r--r-- | test-suite/bugs/closed/bug_9598.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9598.v b/test-suite/bugs/closed/bug_9598.v new file mode 100644 index 0000000000..917bf92a87 --- /dev/null +++ b/test-suite/bugs/closed/bug_9598.v @@ -0,0 +1,11 @@ +Module case. + + Inductive pair := K (n1 : nat) (n2 : nat). + Definition 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 case. |
