src/test/04-Stress/func-call-3-member.ck
raw| 1 | // #2024-func-call-update verification |
| 2 | |
| 3 | // test member function |
| 4 | SinOsc osc; |
| 5 | |
| 6 | // emit as value without call |
| 7 | osc.gain; |
| 8 | |
| 9 | // test for stack overflow |
| 10 | repeat(1000000) osc.gain; |
| 11 | |
| 12 | // this might yield a compiler later on, until then... |
| 13 | repeat(1000000) osc.gain == "hello"; |
| 14 | |
| 15 | // if we get here, ok |
| 16 | <<< "success" >>>; |