use strict;
BEGIN{
BAIL_OUT "A bug in Perl 5.20 regex compilation prevents the use of PPR under that release"
if $] > 5.020 && $] < 5.022;
}
plan tests => 1;
use PPR;
my $source = do { local (@ARGV, $/) = $INC{'PPR.pm'}; readline; };
ok $source =~ m{ \A (?&PerlDocument) \Z $PPR::GRAMMAR }xms => 'Matched own document';
done_testing();