about summary refs log tree commit diff
path: root/users/glittershark/achilles/ach
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/achilles/ach')
-rw-r--r--users/glittershark/achilles/ach/.gitignore1
-rw-r--r--users/glittershark/achilles/ach/units.ach7
2 files changed, 8 insertions, 0 deletions
diff --git a/users/glittershark/achilles/ach/.gitignore b/users/glittershark/achilles/ach/.gitignore
index 07b37e168979..ac5296ebbd74 100644
--- a/users/glittershark/achilles/ach/.gitignore
+++ b/users/glittershark/achilles/ach/.gitignore
@@ -4,3 +4,4 @@
 functions
 simple
 externs
+units
diff --git a/users/glittershark/achilles/ach/units.ach b/users/glittershark/achilles/ach/units.ach
new file mode 100644
index 000000000000..70635d978c7c
--- /dev/null
+++ b/users/glittershark/achilles/ach/units.ach
@@ -0,0 +1,7 @@
+extern puts : fn cstring -> int
+
+ty print : fn cstring -> ()
+fn print x = let _ = puts x in ()
+
+ty main : fn -> int
+fn main = let _ = print "hi" in 0