bblock.t 479 B

123456789101112131415161718192021
  1. #!/usr/bin/env perl -w
  2. # blead cannot run -T
  3. BEGIN {
  4. if ($ENV{PERL_CORE}) {
  5. push @INC, ('.', '../../lib');
  6. }
  7. require Config;
  8. if ($ENV{PERL_CORE} and ($Config::Config{'extensions'} !~ /\bB\b/) ){
  9. print "1..0 # Skip -- Perl configured without B module\n";
  10. exit 0;
  11. }
  12. }
  13. use Test::More tests => 1;
  14. use_ok('B::Bblock', qw(find_leaders));
  15. # For now only test loading Bblock works.
  16. # We could add tests to split op groups by Basic Blocks for CC.