aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorMaxime Dénès2017-08-01 13:01:12 +0200
committerMaxime Dénès2017-08-01 13:01:12 +0200
commit662d6581c852496d5bb62e27893810e2514cdfbb (patch)
tree46a22e172eb438d2de0106c846f66aa08f441bb9 /test-suite
parent82df5a27656753f50b5f5ff7d1faa37b2ddefc49 (diff)
parent3810a76a85a83242a739bacdfd2c8485a8e4c9da (diff)
Merge PR #806: closing bug 5315
Diffstat (limited to 'test-suite')
-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 0000000000..f1f1b8c051
--- /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. \ No newline at end of file