Skip to content

Commit 697aa61

Browse files
committed
Tests empty basic block evaluates to false
1 parent 139cf1e commit 697aa61

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/arch/zx48k/optimizer/test_basicblock.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ def test_block_partition_call_flag(self):
6565
self.assertEqual(blks[1].code, ['nop'])
6666
self.assertTrue(blks[1] in blks[0].goes_to)
6767
self.assertTrue(blks[0] in blks[1].comes_from)
68+
69+
def test_empty_basic_block_is_false(self):
70+
assert not self.blk

0 commit comments

Comments
 (0)