Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f747bb18d7b6b00911a25c53eed8dda7edf0283d
      
https://github.com/Perl/perl5/commit/f747bb18d7b6b00911a25c53eed8dda7edf0283d
  Author: Richard Leach <[email protected]>
  Date:   2026-01-24 (Sat, 24 Jan 2026)

  Changed paths:
    M t/op/cond.t

  Log Message:
  -----------
  t/op/cond.t - add a specific test for GH#18576

GH #18576 was concerned with the value returned from `if/elsif` statements
that both have a false conditional, such as:

    my $y=do { if (0) { 5 } elsif(0) { 6 } };

where `$y` should contain an IV with value 0, the value of the last
expression to be evaluated, but it did not.

This problem was fixed as a side-effect of following commit:

    4176abf7a8e425113debe55679c99b59bb9d299a
    Author: David Mitchell <[email protected]>
    Date:   Wed Sep 18 12:28:18 2019 +0100

        set VOID on OP_ENTER

        The OP_ENTER planted at the start of a program (and possibly elsewhere)
        gets left as UNKNOWN context rather than VOID context, due to op_scope()
        not honouring the current context.

        Fixing this makes things infinitesimally faster.

This commit adds the `if/else` example mentioned above as a specific test
for GH #18576, to add assurance that a future regression would result in
a test failure.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to