This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove unused sub from strict vs. multideref test
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 17 Jan 2016 15:09:46 +0000 (15:09 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Sun, 17 Jan 2016 15:20:22 +0000 (15:20 +0000)
t/lib/strict/subs

index bad22c6..246be0e 100644 (file)
@@ -460,11 +460,10 @@ Bareword "FOO" not allowed while "strict subs" in use at - line 3.
 Execution of - aborted due to compilation errors.
 ########
 # [perl #126981] Strict subs vs. multideref
-sub CONST () { 'some_key' }
 my $h;
 my $v1 = $h->{+CONST_TYPO};
 use strict 'subs';
 my $v2 = $h->{+CONST_TYPO};
 EXPECT
-Bareword "CONST_TYPO" not allowed while "strict subs" in use at - line 6.
+Bareword "CONST_TYPO" not allowed while "strict subs" in use at - line 5.
 Execution of - aborted due to compilation errors.