3 use Test::More 'no_plan';
10 use XS::APItest 'pmflag';
16 my ($char, $val) = @$_;
18 foreach my $before (0, 1) {
19 my $got = pmflag($ord, $before);
20 is($got, $before | $val, "Flag $ord, before $before");
23 qr/^Perl_pmflag\(\) is deprecated, and will be removed from the XS API/);
26 no warnings 'deprecated';
28 $got = pmflag($ord, $before);
29 is($got, $before | $val, "Flag $ord, before $before");
34 $got = pmflag($ord, $before);
35 is($got, $before | $val, "Flag $ord, before $before");
38 qr/^Perl_pmflag\(\) is deprecated, and will be removed from the XS API/);