aboutsummaryrefslogtreecommitdiff
path: root/tests/fallthrough.s
blob: 878b5e49ca83657ba6eee73448fa78870e46b5d4 (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
28
29
30
31
32
33
34
35
.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

.proc bar
    lda #0
    __fallthrough__ other
.endproc

.proc other
    rts
.endproc

.scope Scope
    .proc foo
        __fallthrough__ Scope::bar
    .endproc

    .proc bar
        rts
    .endproc
.endscope

;;; asan:stack full