#!./yabasic
do
  break
  a=1
loop
if a error "1"

for a=1 to 3
  switch a
    case 1:break
    case 2:continue
  end switch
next a
if a<>4 error "2"
poke "__assert_stack_size",0

a=0
while(a<=3)
  a=a+1
  switch a
    case 1:break
    case 2:continue
  end switch
wend
if a<>4 error "3"
poke "__assert_stack_size",0

a=0
repeat
  a=a+1
  switch a
    case 1:break
    case 2:continue
  end switch
until(a=4)
if a<>4 error "4"
poke "__assert_stack_size",0

a=0
do
  a=a+1
  switch a
    case 1:break
    case 2:continue
  end switch
  if a=4 break
loop
if a<>4 error "5"
poke "__assert_stack_size",0

for a=0 to 4
  for b=0 to 4
    if (a*b=12) break 2
  next b
next a
if a<>3 or b<>4 error "6"
poke "__assert_stack_size",0

exit 0

