chdir 't' if -d 't';
@INC = '../lib';
require './test.pl';
-$ENV{PERL5LIB} = "../lib" unless $^O eq 'VMS';
use strict;
$|=1;
print sub { return "ok 1\n" } -> ();
EXPECT
ok 1
+########
+# [perl #71154] undef &$code makes $code->() die with: Not a CODE reference
+sub __ANON__ { print "42\n" }
+undef &{$x=sub{}};
+$x->();
+EXPECT
+Undefined subroutine called at - line 4.