aboutsummaryrefslogtreecommitdiff
path: root/src/main.ha
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.ha')
-rw-r--r--src/main.ha11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main.ha b/src/main.ha
new file mode 100644
index 0000000..492f179
--- /dev/null
+++ b/src/main.ha
@@ -0,0 +1,11 @@
+use fmt;
+
+export fn main() void = {
+ fmt::println("Hello world!")!;
+ let a: u64 = 123;
+};
+
+@test fn testWtf() void = {
+ assert(1 == 0, "Failed");
+ fmt::println("Test wtf")!;
+};