stage1 将数组和聚合类型使用byte offset而不是slot idx

This commit is contained in:
zzy
2026-07-07 11:38:31 +08:00
parent 3cf11f922e
commit 1df3e3bcb4
9 changed files with 103 additions and 86 deletions

View File

@@ -22,8 +22,6 @@ fn fib(n: i32) i32 {
}
fn main() i32 {
vm_printf("=== integration test ===\n");
/* 综合:指针 + 结构体 + 函数 */
var p1: Point;
p1.x = 3;
@@ -92,9 +90,6 @@ fn main() i32 {
}
j = j + 1;
}
if outer_sum != 9 { ret 8; }
vm_printf("=== all integration tests passed ===\n");
if outer_sum != 3 { ret 8; }
ret 0;
}