test: 添加 Bug5 模块进行操作系统交互测试

This commit is contained in:
Luke 2025-07-31 14:17:28 +08:00
parent b7e9c8121e
commit e1a7f3310c
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,16 @@
module: Main
import: os
globals:
declare sum: int = 0
function: main
parameter:
return_type: int
body:
sum = 20
os.print(sum)
return 0
end body
end function
end module

View File

@ -0,0 +1,11 @@
module: os
import: os
function: print
parameter:
declare i1: int
return_type: void
body:
syscall("PRINT",i1)
end body
end function
end module