summaryrefslogtreecommitdiff
path: root/test-suite/success/PPFix.v
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/success/PPFix.v')
-rw-r--r--test-suite/success/PPFix.v9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/PPFix.v b/test-suite/success/PPFix.v
new file mode 100644
index 00000000..833eb3ad
--- /dev/null
+++ b/test-suite/success/PPFix.v
@@ -0,0 +1,9 @@
+
+(* To test PP of fixpoints *)
+Require Import Arith.
+Check fix a(n: nat): n<5 -> nat :=
+ match n return n<5 -> nat with
+ | 0 => fun _ => 0
+ | S n => fun h => S (a n (lt_S_n _ _ (lt_S _ _ h)))
+ end.
+