Add test files.

This commit is contained in:
Charles Zhang 2020-02-14 17:37:57 -08:00
parent 429d78462f
commit c267624bd0
2 changed files with 19 additions and 0 deletions

View 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))))

View 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))