aboutsummaryrefslogtreecommitdiff
path: root/tests/bad_fallthrough.s
blob: ac17adef22f6d60d462f81b9ecff607f28bc1b8c (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