test: 添加 Bug6

This commit is contained in:
Luke 2025-08-03 00:39:12 +08:00
parent 7fab3cc662
commit 2188171b63
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,13 @@
module: Main
import: os
globals:
declare sum: int = 123
function: main
parameter:
return_type: int
body:
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