summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.odin30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/test.odin b/tests/test.odin
new file mode 100644
index 0000000..687615b
--- /dev/null
+++ b/tests/test.odin
@@ -0,0 +1,30 @@
+package main
+
+import "core:fmt"
+
+main :: proc() {
+ hello()
+ fmt.println(add(10, 20))
+}
+
+hello :: proc() {
+ fmt.println("Hello, Odin!")
+}
+
+add :: proc(a, b: int) -> int {
+ return a + b
+}
+
+Point :: struct {
+ x, y: f32,
+}
+
+Color :: enum {
+ Red,
+ Green,
+ Blue,
+}
+
+complex_proc :: proc(name: string, age: int, flags: ..bool) {
+ // ...
+}