summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 6 insertions, 2 deletions
diff --git a/test.toc b/test.toc
index 4bcb48e..05f94ec 100644
--- a/test.toc
+++ b/test.toc
@@ -26,10 +26,14 @@ foo ::= fn() i32 {
malloc :: fn(u64) &u8 = #foreign "malloc", "libc.so.6";
-sqrt :: fn(f64) f64 = #foreign "sqrt", "libm.so";
+sqrt :: fn(f64) f64 = #foreign "sqrt", "libm.so.6";
+cos :: fn(f64) f64 = #foreign "cos", "libm.so.6";
+sin :: fn(f64) f64 = #foreign "sin", "libm.so.6";
main ::= fn() {
x ::= foo();
- y ::= malloc(10);
+ // y ::= malloc(10);
sq2 ::= sqrt(2);
+ cospi ::= cos(3.14159);
+ sinpi ::= sin(3.14159);
}; \ No newline at end of file