(defun comp-tests-ffuncall-callee-rest-f (a b &rest c)
(list a b c))
+(defun comp-tests-ffuncall-callee-more8-f (p1 p2 p3 p4 p5 p6 p7 p8 p9 p10)
+ ;; More then 8 args.
+ (list p1 p2 p3 p4 p5 p6 p7 p8 p9 p10))
+
+(defun comp-tests-ffuncall-callee-more8-rest-f (p1 p2 p3 p4 p5 p6 p7 p8 p9 &rest p10)
+ ;; More then 8 args.
+ (list p1 p2 p3 p4 p5 p6 p7 p8 p9 p10))
+
(defun comp-tests-ffuncall-native-f ()
"Call a primitive with no dedicate op."
(make-vector 1 nil))
(defun comp-test-callee (_ __) t)
(defun comp-test-silly-frame1 (x)
+ ;; Check robustness against dead code.
(cl-case x
(0 (comp-test-callee
(pcase comp-tests-var1
3))))
(defun comp-test-silly-frame2 (token)
+ ;; Check robustness against dead code.
(while c
(cl-case c
(?< 1)
(should (equal (comp-tests-ffuncall-callee-rest-f 1 2 3 4)
'(1 2 (3 4))))
+ (should (equal (comp-tests-ffuncall-callee-more8-f 1 2 3 4 5 6 7 8 9 10)
+ '(1 2 3 4 5 6 7 8 9 10)))
+
+ (should (equal (comp-tests-ffuncall-callee-more8-rest-f 1 2 3 4 5 6 7 8 9 10 11)
+ '(1 2 3 4 5 6 7 8 9 (10 11))))
+
(should (equal (comp-tests-ffuncall-native-f) [nil]))
(should (equal (comp-tests-ffuncall-native-rest-f) [1 2 3]))