This test was added to make sure that constants don’t become undefined
as a result of being shared between ops.
What was tested, though, was a side-effect, and not the actual bug
itself.
This behaviour has changed (sub(){42} now returns a mutable val-
ue), so this test needs to change, too. It was only passing under
ithreads, and only as the result of another bug, which the next com-
mit will fix.
EXPECT
foo
########
+# [perl #3066]
sub C () { 1 }
-sub M { $_[0] = 2; }
+sub M { print "$_[0]\n" }
eval "C";
M(C);
EXPECT
-Modification of a read-only value attempted at - line 2.
+1
########
print qw(ab a\b a\\b);
EXPECT