diff options
Diffstat (limited to 'test.toc')
-rw-r--r-- | test.toc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -2,6 +2,14 @@ puti @= fn(i: int) { #C("printf(\"%ld\\n\", i)"); }; +asdf @= fn(i: int) [3]int { + ret : [3]int; + ret[0] = 0*i; + ret[1] = 1*i; + ret[2] = 2*i; + return ret; +}; + main @= fn() { x := new int; *x = 17; @@ -12,6 +20,7 @@ main @= fn() { } puti(*x); del x; + fptr := asdf; }; foo := 5; |