This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test for perl #47047
authorRick Delaney <rick@bort.ca>
Mon, 5 Sep 2016 16:25:59 +0000 (09:25 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Sep 2016 16:32:39 +0000 (09:32 -0700)
t/lib/warnings/gv

index 85e4c0a..8a93f8b 100644 (file)
@@ -43,6 +43,8 @@ sub Other::AUTOLOAD { 1 } sub Other::fred {}
 @ISA = qw(Other) ;
 use warnings 'deprecated' ;
 fred() ;
+my $x = \&barney;
+(bless[])->barney;
 EXPECT
 Use of inherited AUTOLOAD for non-method main::fred() is deprecated at - line 5.
 ########