-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This test exposes a bug in a missing seal for using continue in the nested for-else clause. Specifically, one needs to have an else-clause with a series of linear statements and a continue to hit this. If you try to break, the break index will be the same as the exit index for the seal_inside_of_loop as the default_index is also the exit_index. So you can only hit this with exit_index. In that case the block with the continue does not point to the loop header but to the incorrect exit instead. The test has been constructed such that a potential reconstruction would also fail execution with an incorrect return value.
- Loading branch information
Showing
2 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters