aboutsummaryrefslogtreecommitdiff
path: root/tests/fallthrough.s
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fallthrough.s')
-rw-r--r--tests/fallthrough.s23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/fallthrough.s b/tests/fallthrough.s
new file mode 100644
index 0000000..2340ee8
--- /dev/null
+++ b/tests/fallthrough.s
@@ -0,0 +1,23 @@
+.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