use strict;
use warnings;
-use Test::More tests => 12;
+use Test::More tests => 16;
our $foo;
is($@, '', 'compiled to foo(3)');
is($foo, 3, 'main::foo was really called');
+ eval { subs::auto::Test::Pkg::foo 4 };
+ is($@, '', 'compiled to subs::auto::Test::Pkg::foo(4)');
+ is($foo, 8, 'subs::auto::Test::Pkg::foo was really called');
+
{
package subs::auto::Test::Pkg;
}
}
+{
+ package subs::auto::Test::Pkg;
+
+ use subs::auto;
+
+ eval { foo 8 };
+ Test::More::is($@, '', 'compiled to foo(8)');
+ Test::More::is($foo, 16, 'subs::auto::Test::Pkg::foo was really called');
+}
+
{
use subs::auto in => '::';