WIP : Storing line numbers, detecting immediate mode vs storage mode, solver tests are not working
This commit is contained in:
@@ -30,6 +30,19 @@ int main(void)
|
||||
if ( result.flags != (BASIC_VARFLAG_INIT | BASIC_VARFLAG_TINT) ) return 6;
|
||||
if ( result.value.i != 1 ) return 7;
|
||||
|
||||
expr.type = BASIC_OPTP_STOR;
|
||||
expr.lval_type = BASIC_LVAL_CONST_INT;
|
||||
expr.rval_type = BASIC_RVAL_PTR;
|
||||
expr.lval.i = 10;
|
||||
expr.rval.ptr = " REM ignore me";
|
||||
memset(&result, 0x00, sizeof(basic_variable));
|
||||
basic_solve_expr(&expr, &result);
|
||||
if ( basic_errno != 0 ) return 8;
|
||||
if ( result.flags != (BASIC_VARFLAG_INIT | BASIC_VARFLAG_TSTR) ) return 9;
|
||||
if ( result.value.ptr == NULL ) return 10;
|
||||
if ( strcmp((char *)&basic_memory_lines[10], expr.rval.ptr) != 0 ) return 11;
|
||||
|
||||
|
||||
return 0;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user