use warnings;
use strict;
-plan tests => 54;
+plan tests => 56;
our $foo;
while ($?) {
is($r, "ok", 'redo and goto');
}
+# goto &foo not allowed in evals
+
+sub null { 1 };
+eval 'goto &null';
+like($@, qr/Can't goto subroutine from an eval-string/, 'eval string');
+eval { goto &null };
+like($@, qr/Can't goto subroutine from an eval-block/, 'eval block');