diff options
| author | coqbot-app[bot] | 2020-11-21 17:33:44 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-21 17:33:44 +0000 |
| commit | 9d36da17138d9117e0582f65c9f70e696c7bcc94 (patch) | |
| tree | a492b0e49a1114c9987b2c97e0710701a1d99d6b /test-suite/misc | |
| parent | 5b15fce17d856dfbd51482f724ddf5e5f9646073 (diff) | |
| parent | 8e152ab7156c6c642bb4665d4610cc8c49242141 (diff) | |
Merge PR #13431: Make sure accumulators do not exceed the minor heap (partly fix #11170).
Reviewed-by: gares
Reviewed-by: xavierleroy
Ack-by: ppedrot
Diffstat (limited to 'test-suite/misc')
| -rwxr-xr-x | test-suite/misc/11170.sh | 8 | ||||
| -rw-r--r-- | test-suite/misc/aux11170.v | 6 |
2 files changed, 14 insertions, 0 deletions
diff --git a/test-suite/misc/11170.sh b/test-suite/misc/11170.sh new file mode 100755 index 0000000000..da8843fcf6 --- /dev/null +++ b/test-suite/misc/11170.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e + +export PATH=$BIN:$PATH +export OCAMLRUNPARAM=s=1 + +${coqc#"$BIN"} misc/aux11170.v diff --git a/test-suite/misc/aux11170.v b/test-suite/misc/aux11170.v new file mode 100644 index 0000000000..d4a8630053 --- /dev/null +++ b/test-suite/misc/aux11170.v @@ -0,0 +1,6 @@ +Fixpoint T n := match n with O => nat | S n => nat -> T n end. +Fixpoint app n : T n -> nat := + match n with O => fun x => x | S n => fun f => app n (f 0) end. +Definition n := (fix aux n := match n with S n => aux n + aux n | O => 1 end) 13. +Axiom f : T n. +Eval vm_compute in let t := (app n f, 0) in snd t. |
