mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-28 22:07:49 +00:00
23
test/asm/elif-after-taken-if.asm
Normal file
23
test/asm/elif-after-taken-if.asm
Normal file
@@ -0,0 +1,23 @@
|
||||
if 1
|
||||
println "taken if"
|
||||
elif 2 / 0 ; avoided fatal "Division by zero" error
|
||||
println "untaken elif"
|
||||
elif 3 / 0 ; avoided fatal "Division by zero" error
|
||||
println "untaken after untaken"
|
||||
endc
|
||||
|
||||
if 0
|
||||
println "untaken if"
|
||||
elif 1
|
||||
println "taken elif"
|
||||
elif !@#$ ; avoided fatal syntax error
|
||||
println "untaken elif"
|
||||
elif %^&* ; avoided fatal syntax error
|
||||
println "untaken after untaken"
|
||||
endc
|
||||
|
||||
if 0
|
||||
println "untaken if"
|
||||
elif 1 / 0 ; fatal "Division by zero" error
|
||||
println "unreached elif"
|
||||
endc
|
||||
Reference in New Issue
Block a user