test: 增加 Demo 24

This commit is contained in:
Luke 2025-08-26 16:22:53 +08:00
parent ac0d3b9785
commit 71cbb3a737

View File

@ -0,0 +1,23 @@
module: Main
import: ModuleA,os
function: main
returns: void
body:
declare a: int = ModuleA.sum(1,2)
end body
end function
end module
module: ModuleA
globals:
declare a: int = 10
function: sum
params:
declare a: int
declare b: int
returns: int
body:
return a + b
end body
end function
end module