8 use Test::More tests => 4;
14 ok( eval "use if ($v_minus > \$]), strict => 'subs'; \${'f'} = 12" eq 12,
15 '"use if" with a false condition, fake pragma');
17 ok( eval "use if ($v_minus > \$]), strict => 'refs'; \${'f'} = 12" eq 12,
18 '"use if" with a false condition and a pragma');
20 ok( eval "use if ($v_plus > \$]), strict => 'subs'; \${'f'} = 12" eq 12,
21 '"use if" with a true condition, fake pragma');
23 ok( (not defined eval "use if ($v_plus > \$]), strict => 'refs'; \${'f'} = 12"
24 and $@ =~ /while "strict refs" in use/),
25 '"use if" with a true condition and a pragma');