test/retjmp.dir/a.s
raw| 1 | // Copyright 2018 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | TEXT ·f(SB), 4, $8-0 |
| 6 | CALL ·f1(SB) |
| 7 | RET ·f2(SB) |
| 8 | CALL ·unreachable(SB) |
| 9 | |
| 10 | TEXT ·leaf(SB), 4, $0-0 |
| 11 | RET ·f3(SB) |
| 12 | JMP ·unreachable(SB) |
| 13 | |
| 14 | TEXT ·leaf2(SB), 4, $32-0 // nonzero frame size |
| 15 | RET ·f4(SB) |
| 16 | JMP ·unreachable(SB) |