source: tags/1.6.0/t/compiler-stack-inconsistency.lisp

Last change on this file was 15140, checked in by Mark Evenson, 5 years ago

Test for compiler stack inconsistency

(somewhat-functional-programmer) Mark

Tests <https://github.com/armedbear/abcl/issues/69>.

In response to
<https://mailman.common-lisp.net/pipermail/armedbear-devel/2019-May/003977.html>.

Author is subscribed to armedbear-devel list via username at protonmail.com

File size: 604 bytes
Line 
1(in-package :cl-user)
2
3(prove:plan 1)
4
5(defun two-arg-fn (one two)
6 (format t "Two args: ~S and ~S~%" one two))
7
8(prove:ok 
9 (let ((fn (compile nil '(lambda ()
10                          (two-arg-fn
11                           (block test-block
12                             (unwind-protect
13                                  30
14                               (return-from test-block 8)))
15                           -1)))))
16   (let ((result (funcall fn)))
17     (values
18      (not result)
19      result)))
20 (format nil "Checking for successfull compilation of two argument function
"))
21
22(prove:finalize)
23
24
25 
Note: See TracBrowser for help on using the repository browser.