mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
minor tweaks to a peval test
* test-suite/tests/peval.test: Update mutable var test to really ensure that the function can't inline.
This commit is contained in:
parent
a36e7870c3
commit
1cd63115be
1 changed files with 4 additions and 4 deletions
|
@ -754,13 +754,13 @@
|
|||
;; This test checks that the `start' binding is indeed residualized.
|
||||
;; See the `referenced?' procedure in peval's `prune-bindings'.
|
||||
(let ((pos 0))
|
||||
(set! pos 1) ;; Cause references to `pos' to residualize.
|
||||
(let ((here (let ((start pos)) (lambda () start))))
|
||||
(set! pos 1) ;; Cause references to `pos' to residualize.
|
||||
(here)))
|
||||
(let (pos) (_) ((const 0))
|
||||
(begin
|
||||
(set! (lexical pos _) (const 1))
|
||||
(let (here) (_) (_)
|
||||
(let (here) (_) (_)
|
||||
(begin
|
||||
(set! (lexical pos _) (const 1))
|
||||
(apply (lexical here _))))))
|
||||
|
||||
(pass-if-peval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue