require 'test.pl';
}
use warnings;
-plan( tests => 146 );
+plan( tests => 147 );
# these shouldn't hang
{
cmp_ok(substr($@,0,length($fail_msg)),'eq',$fail_msg,'bug 7567');
}
+{
+ local $TODO = "sort should make sure elements are not freed in the sort block";
+ eval { @nomodify_x=(1..8); our @copy = sort { @nomodify_x = (0) } (@nomodify_x, 3); };
+ is($@, "");
+}
+
# Sorting shouldn't increase the refcount of a sub
{