(byte-varset
(comp-emit (comp-call 'set_internal
(make-comp-mvar :constant arg)
- (comp-slot))))
+ (comp-slot-next))))
(byte-varbind ;; Verify
(comp-emit (comp-call 'specbind
(make-comp-mvar :constant arg)
(defun comp-tests-cons-cdr-f (x)
(cdr (cons 'foo x)))
-(defun comp-tests-varset-f ()
+(defun comp-tests-varset0-f ()
(setq comp-tests-var1 55))
+(defun comp-tests-varset1-f ()
+ (setq comp-tests-var1 66)
+ 4)
(defun comp-tests-length-f ()
(length '(1 2 3)))
(ert-deftest comp-tests-varset ()
"Testing varset."
- (comp-tests-varset-f)
- (should (= comp-tests-var1 55)))
+ (comp-tests-varset0-f)
+ (should (= comp-tests-var1 55))
+
+ (should (= (comp-tests-varset1-f) 4))
+ (should (= comp-tests-var1 66)))
(ert-deftest comp-tests-length ()
"Testing length."