mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Add test files.
This commit is contained in:
parent
429d78462f
commit
c267624bd0
7
tests/block-compile-test-2.lisp
Normal file
7
tests/block-compile-test-2.lisp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(defun foo1 (x y)
|
||||
(bar2 x y))
|
||||
|
||||
(defun bar2 (x y)
|
||||
(if (zerop x)
|
||||
y
|
||||
(foo1 (1- x) (* y x))))
|
||||
12
tests/block-compile-test.lisp
Normal file
12
tests/block-compile-test.lisp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;; test forward reference
|
||||
(defun foo2 (x)
|
||||
(bar2 x))
|
||||
|
||||
(defun bar2 (x)
|
||||
(1+ (baz2 (+ 3 x))))
|
||||
|
||||
;; test backward reference
|
||||
(defun baz2 (x)
|
||||
(if (zerop x)
|
||||
(foo2 x)
|
||||
x))
|
||||
Loading…
Reference in a new issue