diff options
| author | barras | 2004-03-24 18:12:52 +0000 |
|---|---|---|
| committer | barras | 2004-03-24 18:12:52 +0000 |
| commit | 5332a2c2b3e7d8d41dd40c75ff44496bb9c25c8f (patch) | |
| tree | ce468ed1104284a88591414f76d37ba8fec1085f /test-suite | |
| parent | 79e068b0c9a5d3259e3349a434058a6447568fc2 (diff) | |
bug de PP des fix (coqbugs #574)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5550 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
| -rwxr-xr-x | test-suite/check | 13 | ||||
| -rw-r--r-- | test-suite/success/PPFix.v8 | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test-suite/check b/test-suite/check index 65c4197ebd..1c7822d104 100755 --- a/test-suite/check +++ b/test-suite/check @@ -39,6 +39,19 @@ test_success() { echo "V7 Error! (should be accepted)" fi done + for f in $1/*.v8; do + nbtests=`expr $nbtests + 1` + printf " "$f"..." + cp $f tmp8.v + $command tmp8.v > /dev/null 2>&1 + if [ $? = 0 ]; then + echo "Ok" + nbtestsok=`expr $nbtestsok + 1` + else + echo "V8 Error! (should be accepted)" + fi + rm tmp8.v + done } # La fonction suivante teste le compilateur sur des fichiers qu'il doit diff --git a/test-suite/success/PPFix.v8 b/test-suite/success/PPFix.v8 new file mode 100644 index 0000000000..1ecbae3ab3 --- /dev/null +++ b/test-suite/success/PPFix.v8 @@ -0,0 +1,8 @@ + +(* 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. |
