minor tweaks to a peval test
authorAndy Wingo <wingo@pobox.com>
Fri, 13 Apr 2012 22:13:19 +0000 (15:13 -0700)
committerAndy Wingo <wingo@pobox.com>
Mon, 23 Apr 2012 19:52:24 +0000 (21:52 +0200)
* test-suite/tests/peval.test: Update mutable var test to really ensure
  that the function can't inline.

test-suite/tests/peval.test

index 400c3e7..5305dea 100644 (file)
     ;; 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