summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@red-bean.com>1999-06-19 16:28:11 +0000
committerJim Blandy <jimb@red-bean.com>1999-06-19 16:28:11 +0000
commit26dd899df2c60515e1e5481b6c9d19407d80adec (patch)
tree99ca5fa89d6e3d97718baa71c533dadcaa85266e
parent98947fdca4c736f1423d5b9e358d46c15893c852 (diff)
downloadguile-26dd899df2c60515e1e5481b6c9d19407d80adec.tar.gz
* tests/interp.test: New file.
-rw-r--r--test-suite/tests/interp.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/tests/interp.test b/test-suite/tests/interp.test
new file mode 100644
index 000000000..18218d6d3
--- /dev/null
+++ b/test-suite/tests/interp.test
@@ -0,0 +1,16 @@
+;;;; interp.test --- tests for bugs in the Guile interpreter -*- scheme -*-
+;;;; We'll put a copyright on this as soon as it's big enough to copyright.
+
+(pass-if "Internal defines 1"
+ (letrec ((foo (lambda (arg)
+ (or arg (and (procedure? foo)
+ (foo 99))))))
+ (define bar (foo #f))
+ (foo #f)))
+
+(pass-if "Internal defines 2"
+ (letrec ((foo 77)
+ (bar #f)
+ (retfoo (lambda () foo)))
+ (define baz (retfoo))
+ (retfoo)))