summaryrefslogtreecommitdiff
path: root/test-suite/success/PPFix.v
diff options
context:
space:
mode:
authorGravatar Samuel Mimram <smimram@debian.org>2006-04-28 14:59:16 +0000
committerGravatar Samuel Mimram <smimram@debian.org>2006-04-28 14:59:16 +0000
commit3ef7797ef6fc605dfafb32523261fe1b023aeecb (patch)
treead89c6bb57ceee608fcba2bb3435b74e0f57919e /test-suite/success/PPFix.v
parent018ee3b0c2be79eb81b1f65c3f3fa142d24129c8 (diff)
Imported Upstream version 8.0pl3+8.1alphaupstream/8.0pl3+8.1alpha
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.
+