summaryrefslogtreecommitdiff
path: root/test-suite/bugs/closed/5315.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/bugs/closed/5315.v')
-rw-r--r--test-suite/bugs/closed/5315.v10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/5315.v b/test-suite/bugs/closed/5315.v
new file mode 100644
index 00000000..d8824bff
--- /dev/null
+++ b/test-suite/bugs/closed/5315.v
@@ -0,0 +1,10 @@
+Require Import Recdef.
+
+Function dumb_works (a:nat) {struct a} :=
+ match (fun x => x) a with O => O | S n' => dumb_works n' end.
+
+Function dumb_nope (a:nat) {struct a} :=
+ match (id (fun x => x)) a with O => O | S n' => dumb_nope n' end.
+
+(* This check is just present to ensure Function worked well *)
+Check R_dumb_nope_complete.