res = jit_emit_call ("Flength", comp.lisp_obj_type, 1, args);
PUSH (gcc_jit_lvalue_as_rvalue (res));
break;
+
case Baref:
- printf("Baref\n");
+ POP2;
+ res = jit_emit_call ("Faref", comp.lisp_obj_type, 2, args);
+ PUSH (gcc_jit_lvalue_as_rvalue (res));
break;
+
case Baset:
printf("Baset\n");
break;
(should (= (comp-tests-length-f) 3)))
+(ert-deftest comp-tests-aref ()
+ "Testing aref."
+ (defun comp-tests-aref-f ()
+ (aref [1 2 3] 2))
+ (byte-compile #'comp-tests-aref-f)
+ (native-compile #'comp-tests-aref-f)
+
+ (should (= (comp-tests-aref-f) 3)))
+
(ert-deftest comp-tests-ffuncall ()
"Testing varset."
(defun comp-tests-ffuncall-callee-f (x y z)