Files
harbour-core/harbour/tests/broken/exittest.prg
1999-05-24 15:52:23 +00:00

24 lines
279 B
Plaintext

// quick exit test
function main
local x := 0
do while x < 10
++x
if x == 5
exit
endif
enddo
qout("do exit test",iif(x == 5,"passed","fail"))
for x := 1 to 10
if x == 5
exit
endif
next
qout("for exit test",iif(x == 5,"passed","fail"))
return nil