aboutsummaryrefslogtreecommitdiff
path: root/tests/glfw.amal
diff options
context:
space:
mode:
Diffstat (limited to 'tests/glfw.amal')
-rw-r--r--tests/glfw.amal9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/glfw.amal b/tests/glfw.amal
new file mode 100644
index 0000000..8957127
--- /dev/null
+++ b/tests/glfw.amal
@@ -0,0 +1,9 @@
+extern const glfwInit: fn() i32;
+extern const glfwTerminate: fn() i32; // should return void....
+extern const glfwCreateWindow: fn(x: i32, y: i32, title: str, monitor: usize, share: usize) usize;
+
+const main = fn {
+ glfwInit();
+ glfwCreateWindow(50, 50, "hello, world", 0, 0);
+ glfwTerminate();
+} \ No newline at end of file