diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |