Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lvalue scalar alias tests to lvref.t
This is a compile-time error: (\$x = \1) = \2; However, the following is legal code, but is untested (the 'OPf_MOD' branch in pp_refassign() is not triggered by the test suite): f(\$x = \1); So this commit adds some tests. It assumes that the above code is equivalent to: \$x = \1; f(\$x); Whether the existing behaviour is sane is up for debate, but if if we change it, it should be a deliberate choice, not an accidental change not spotted by the existing tests.
- Loading branch information