From 2188171b63cf6df92fe117fc6717ae318c3e96d0 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 3 Aug 2025 00:39:12 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B7=BB=E5=8A=A0=20Bug6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/BugFarm/Bug6/Main.snow | 13 +++++++++++++ playground/BugFarm/Bug6/OS.snow | 11 +++++++++++ 2 files changed, 24 insertions(+) create mode 100644 playground/BugFarm/Bug6/Main.snow create mode 100644 playground/BugFarm/Bug6/OS.snow diff --git a/playground/BugFarm/Bug6/Main.snow b/playground/BugFarm/Bug6/Main.snow new file mode 100644 index 0000000..7a5bdae --- /dev/null +++ b/playground/BugFarm/Bug6/Main.snow @@ -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 diff --git a/playground/BugFarm/Bug6/OS.snow b/playground/BugFarm/Bug6/OS.snow new file mode 100644 index 0000000..6026d43 --- /dev/null +++ b/playground/BugFarm/Bug6/OS.snow @@ -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 \ No newline at end of file