issue44.t 577 B

123456789101112131415161718192021
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=44
  3. # pp_aelemfast not implemented for local vars OPf_SPECIAL
  4. use Test::More tests => 1;
  5. use strict;
  6. BEGIN {
  7. unshift @INC, 't';
  8. require "test.pl";
  9. }
  10. # fails to compile non-threaded, wrong result threaded
  11. my $script = <<'EOF';
  12. my @a = (1,2);
  13. print $a[0], "\n";
  14. EOF
  15. use B::CC;
  16. ctest(1, '^1$', "CC", "ccode44i", $script, # fixed with B::CC 1.08 r601 (B-C-1.28)
  17. ($B::CC::VERSION < 1.08 ? "TODO " : "")
  18. . "pp_aelemfast not implemented for local vars OPf_SPECIAL, fixed with B-C-1.28");