Skip to content

Commit 0f43854

Browse files
committed
t/op/goto.t: Clarify purpose of exit statement
The 'exit;' statement is here to ensure that bar does not return normally. (If it did, the exit would be executed, making the test fail because the rest of the planned tests wouldn't have run.) For clarity, adding an explicit fail. For GH #23649.
1 parent 91a2ef9 commit 0f43854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/op/goto.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ sub bar {
7474
}
7575

7676
&bar;
77+
fail('goto bypass');
7778
exit;
7879

7980
FINALE:

0 commit comments

Comments
 (0)