test for optimizer lifting with unused rest arg

svn: r5793
This commit is contained in:
Matthew Flatt 2007-03-19 22:04:48 +00:00
parent 3abc1bdfa4
commit cbe41955f1

View File

@ -459,6 +459,16 @@
(set! i 10)) (set! i 10))
(err/rt-test (dynamic-require 'bad-order #f)) (err/rt-test (dynamic-require 'bad-order #f))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Check lifting of a function with only an unused rest arg:
(test 1 'continue
(let/ec foo
(let ([continue (lambda extras
(foo 1))])
(+ 1 (continue)))))
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; call-with-values optimization ;; call-with-values optimization