Skip to content

Commit c18a646

Browse files
committed
Add one more test for IF/ELIF/ENDIF.
This is to check the correct loop stack handling at removal of last ELIF.
1 parent b83c220 commit c18a646

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

testsuite/tests/testif.bas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,9 @@ for a=15 to 17
4242
? "Test 16"
4343
endif
4444
next a
45+
? "Test ";
46+
if a=17
47+
? "17"
48+
elif a=18
49+
? "18"
50+
endif

testsuite/tests/testif.chk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ Test 13/14
1717
Test 13/14
1818
Test 15
1919
Test 16
20+
Test 18

0 commit comments

Comments
 (0)