issue141.t 485 B

123456789101112131415
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=141
  3. # C,-O3 stativ pv fails with conversion to IV: char* "1" => 0 < 5.17.5, branch new-cog
  4. use Test::More tests => 1;
  5. use strict;
  6. BEGIN {
  7. unshift @INC, 't';
  8. require "test.pl";
  9. }
  10. use B::C;
  11. my $todo = ($B::C::VERSION lt '1.42_57' ? "TODO " : "");
  12. $todo = "" if $] > 5.017005;
  13. ctestok(1, "C,-O3", 'ccode141i', '@x=(0..1);print "ok" if $#x == "1"', "${todo}C,-O3 pv2iv conversion with static strings");