test: 添加 Bug6
This commit is contained in:
parent
7fab3cc662
commit
2188171b63
13
playground/BugFarm/Bug6/Main.snow
Normal file
13
playground/BugFarm/Bug6/Main.snow
Normal 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
|
||||
11
playground/BugFarm/Bug6/OS.snow
Normal file
11
playground/BugFarm/Bug6/OS.snow
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user