diff options
author | Father Chrysostomos <sprout@cpan.org> | 2015-02-06 10:14:47 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2015-02-06 10:14:47 -0800 |
commit | fb0c7c3c47fb17bb0b685b957af9a0cc581c8996 (patch) | |
tree | 0703db1d1eb07eaa79a426915f889d1d254c3208 /t/comp | |
parent | 488bc5795891132d29daec7a860cab2a6266230c (diff) | |
download | perl-fb0c7c3c47fb17bb0b685b957af9a0cc581c8996.tar.gz |
[perl #123753] Fix assertion failure with map+map
ck_grep calls ck_fun, which sets the lower private bits to indicate
the number of operands. ck_grep usually undoes that, by clobbering
op_private completetly. If an error has occurred, it doesn’t, so we
may fail an assertion if the lower bits are not expected to be set on
mapstart and grepstart.
Diffstat (limited to 't/comp')
-rw-r--r-- | t/comp/parser.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/comp/parser.t b/t/comp/parser.t index 56c23d1d16..a84cfc2c08 100644 --- a/t/comp/parser.t +++ b/t/comp/parser.t @@ -530,6 +530,10 @@ eval 's /${<>{}) //'; # Also used to crash [perl #123652] eval{$1=eval{a:}}; +# Used to fail assertions [perl #123753] +eval "map+map"; +eval "grep+grep"; + # Add new tests HERE (above this line) # bug #74022: Loop on characters in \p{OtherIDContinue} |