Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions t/op/runlevel.t
Original file line number Diff line number Diff line change
Expand Up @@ -366,3 +366,22 @@ print undef;

EXPECT
[TIE] Use of uninitialized value in print at - line 11.
########
# NAME GH #4693 LOGOP branch COP survives LOGOP constant folding
if (0) {die "aa";}
elsif (1) {die "bb";}
EXPECT
bb at - line 2.
########
# NAME LOGOP branch COP survives LOGOP constant folding (2)
if (1) {die "aa";}
elsif (0) {die "bb";}
EXPECT
aa at - line 1.
########
# NAME LOGOP branch COP survives LOGOP constant folding (3)
if (0) {die "aa";}
elsif (0) {die "bb";}
else {die "cc";}
EXPECT
cc at - line 3.
Loading