src/test/01-Basic/224-stack-pointer-reg.ck
raw| 1 | // let's check reg stack pointers |
| 2 | // 1.5.1.7 or higher |
| 3 | |
| 4 | // save reg sp |
| 5 | Machine.sp_reg() => int sp; |
| 6 | |
| 7 | // a function |
| 8 | fun void nope() { } |
| 9 | |
| 10 | // one statement of several expressions |
| 11 | //<<< 5 >>>, |
| 12 | 1, 2, 3, 4, nope(), 5, 6, 7, nope(), nope(); |
| 13 | |
| 14 | |
| 15 | <<< 1, 2, 3, @(4,5), @(6,7,8) >>>; |
| 16 | |
| 17 | // test |
| 18 | if( Machine.sp_reg() == sp ) <<< "success" >>>; |