aboutsummaryrefslogtreecommitdiff
path: root/tests/hello_world.amal
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-12-23 08:57:48 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:37:00 +0200
commit902a81528b9d2edcf93226a2ca13da6fcc1839e5 (patch)
treeea868fae662aab61f1caa50b16a8b02fe1e6836b /tests/hello_world.amal
parent111bd0c7cb4b446c4bfe192b1df82845de17c005 (diff)
wip: function pointers and other stuff
Diffstat (limited to 'tests/hello_world.amal')
-rw-r--r--tests/hello_world.amal5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/hello_world.amal b/tests/hello_world.amal
new file mode 100644
index 0000000..7c68d3f
--- /dev/null
+++ b/tests/hello_world.amal
@@ -0,0 +1,5 @@
+extern const printf: fn(fmt: &c_char, ...) c_int;
+
+const main = fn {
+ printf("hello, world!\n");
+} \ No newline at end of file