use strict;
use warnings;
-use Test::More tests => 74 * 8;
+use Test::More tests => 86 * 8;
BEGIN { delete $ENV{PERL_INDIRECT_PM_DISABLE} }
$obj = "apple ${\($y->$meth)} pear"
####
$obj = "apple @{[$y->$meth]} pear"
+#### # local $_ = "foo";
+s/foo/return; Hlagh->new/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->new/e;
+#### # local $_ = "foo";
+s/foo/return; Hlagh->$cb/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->$cb/e;
+#### # local $_ = "foo";
+s/foo/return; Hlagh->$meth/e;
+#### # local $_ = "bar";
+s/foo/return; Hlagh->$meth/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->new/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->new/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->$cb/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->$cb/e;
+#### # local $_ = "foo";
+s/foo/return; $pkg->$meth/e;
+#### # local $_ = "bar";
+s/foo/return; $pkg->$meth/e;
####
exec $x $x, @a;
####
my ($tests, $reports);
BEGIN {
- $tests = 70;
- $reports = 82;
+ $tests = 76;
+ $reports = 88;
}
use Test::More tests => 3 * (4 * $tests + $reports) + 4;
$obj = "apple @{[new $x qq|@{[stuff $y]}|]} pear"
----
[ 'stuff', '$y' ], [ 'new', '$x' ]
+#### # local $_ = "foo";
+s/foo/return; new Hlagh/e;
+----
+[ 'new', 'Hlagh' ]
+#### # local $_ = "bar";
+s/foo/return; new Hlagh/e;
+----
+[ 'new', 'Hlagh' ]
+#### # local $_ = "foo";
+s/foo/return; new $x/e;
+----
+[ 'new', '$x' ]
+#### # local $_ = "bar";
+s/foo/return; new $x/e;
+----
+[ 'new', '$x' ]
+#### # local $_ = "foo";
+s/foo/return; new $y/e;
+----
+[ 'new', '$y' ]
+#### # local $_ = "bar";
+s/foo/return; new $y/e;
+----
+[ 'new', '$y' ]
####
meh { };
----