> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.71 #1-NixOS SMP PREEMPT_DYNAMIC Fri Jan 5 14:18:41 UTC 2024 x86_64 GNU/Linux 23:54:31 up 2 days 12:49, 2 users, load average: 0.12, 0.35, 0.44
This commit is contained in:
parent
d3f330e74a
commit
487f4d8f3e
1 changed files with 9 additions and 9 deletions
|
@ -174,17 +174,17 @@ START_TEST(test_expr_plain_register) {
|
||||||
for (i = 0; i < 32; i++) {
|
for (i = 0; i < 32; i++) {
|
||||||
ck_assert(strcpy(buf + 1, regs[i]));
|
ck_assert(strcpy(buf + 1, regs[i]));
|
||||||
gpr(i) = i;
|
gpr(i) = i;
|
||||||
|
yy_scan_string(buf);
|
||||||
|
uint32_t value;
|
||||||
|
ck_assert(!yyparse(&value));
|
||||||
|
yylex_destroy();
|
||||||
|
|
||||||
|
ck_assert(value == i);
|
||||||
|
for (i = 1; i < 5; i++) {
|
||||||
|
buf[i] = '\0';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
yy_scan_string(buf);
|
|
||||||
uint32_t value;
|
|
||||||
ck_assert(!yyparse(&value));
|
|
||||||
yylex_destroy();
|
|
||||||
|
|
||||||
ck_assert(value == i);
|
|
||||||
for (i = 1; i < 5; i++) {
|
|
||||||
buf[i] = '\0';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue