src/test/04-Stress/func-call-1.ck
raw| 1 | // #2024-func-call-update verification |
| 2 | |
| 3 | // test custom non-class function |
| 4 | fun void foo( int a ) { } |
| 5 | |
| 6 | // call it |
| 7 | foo(1); |
| 8 | // get the function as value only |
| 9 | foo; |
| 10 | |
| 11 | // check for stack overflow |
| 12 | repeat(100000) foo(2); |
| 13 | repeat(100000) foo; |
| 14 | |
| 15 | // if we get here we are ok |
| 16 | <<< "success" >>>; |