break;
case Bsymbol_value:
- printf("Bsymbol_value\n");
+ POP1;
+ res = jit_emit_call ("Fsymbol_value", comp.lisp_obj_type, 1, args);
+ PUSH (gcc_jit_lvalue_as_rvalue (res));
break;
+
case Bsymbol_function:
printf("Bsymbol_function\n");
break;
(should (= (comp-tests-aref-aset-f) 100)))
+(ert-deftest comp-tests-symbol-value ()
+ "Testing aref and aset."
+ (defvar comp-tests-var2 3)
+ (defun comp-tests-symbol-value-f ()
+ (symbol-value 'comp-tests-var2))
+ (byte-compile #'comp-tests-symbol-value-f)
+ (native-compile #'comp-tests-symbol-value-f)
+
+ (should (= (comp-tests-symbol-value-f) 3)))
+
+
(ert-deftest comp-tests-ffuncall ()
"Testing varset."
(defun comp-tests-ffuncall-callee-f (x y z)