diff options
Diffstat (limited to 'tests/bad_fallthrough.s')
| -rw-r--r-- | tests/bad_fallthrough.s | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bad_fallthrough.s b/tests/bad_fallthrough.s new file mode 100644 index 0000000..ac17ade --- /dev/null +++ b/tests/bad_fallthrough.s @@ -0,0 +1,27 @@ +.segment "HEADER" + .byte 'N', 'E', 'S', $1A + .byte $02, $01 + .byte $00 + .byte $00 + +.segment "CODE" + +.proc foo + lda #0 + .fallthrough bar +.endproc + +.fallthrough bar +.fallthrough other + lda #0 + +.proc bar + lda #0 + .fallthrough other +.endproc + +.proc other + rts +.endproc + +.fallthrough other |
