summaryrefslogtreecommitdiff
path: root/testsuite/t-map.scm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/t-map.scm')
-rw-r--r--testsuite/t-map.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/t-map.scm b/testsuite/t-map.scm
new file mode 100644
index 000000000..76bf1730f
--- /dev/null
+++ b/testsuite/t-map.scm
@@ -0,0 +1,10 @@
+; Currently, map is a C function, so this is a way of testing that the
+; VM is reentrant.
+
+(begin
+
+ (define (square x)
+ (* x x))
+
+ (map (lambda (x) (square x))
+ '(1 2 3)))