test: 添加 Bug4 测试用例

This commit is contained in:
Luke 2025-07-31 12:44:33 +08:00
parent 156f2b76c4
commit 1d73fc298e
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,9 @@
module: Main
import: ModuleB
function: main
return_type: int
body:
return ModuleB.fun()
end body
end function
end module

View File

@ -0,0 +1,8 @@
module: ModuleA
function: fun
return_type: int
body:
return 123
end body
end function
end module

View File

@ -0,0 +1,9 @@
module: ModuleB
import: ModuleA
function: fun
return_type: int
body:
return ModuleA.fun() + ModuleA.fun()
end body
end function
end module