aboutsummaryrefslogtreecommitdiff
path: root/tests/bad_fallthrough.s
blob: 80c35c34ebdfcdec1179853d18174c8ecd6d2445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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