summaryrefslogtreecommitdiff
path: root/test-suite/vm/t-catch.scm
blob: 9cc3e0e1496a3764b304318205d8dd27d845dffd (about) (plain)
1
2
3
4
5
6
7
8
9
10
;; Test that nonlocal exits of the VM work.

(begin
  (define (foo thunk)
    (catch #t thunk (lambda args args)))
  (foo
   (lambda ()
     (let ((a 'one))
       (1+ a)))))