summaryrefslogtreecommitdiff
path: root/testsuite/t-global-bindings.scm
blob: c8ae3692ca196b1b0e2ae4de50482864ebb28c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;; Are global bindings reachable at run-time?  This relies on the
;; `object-ref' and `object-set' instructions.

(begin

  (define the-binding "hello")

  ((lambda () the-binding))

  ((lambda () (set! the-binding "world")))

  ((lambda () the-binding)))