issue234.t 473 B

12345678910111213141516
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=234
  3. # new-cog edge-case: pv2iv conversion with negative numeric strings
  4. use strict;
  5. BEGIN {
  6. unshift @INC, 't';
  7. require "test.pl";
  8. }
  9. use Test::More tests => 1;
  10. use B::C;
  11. my $when = "1.42_61";
  12. ctest(1,'^4$','C,-O3','ccode234i','$c = 0; for ("-3" .. "0") { $c++ } ; print "$c"',
  13. ($B::C::VERSION lt $when ? "TODO " : "").
  14. '#234 -O3 pv2iv conversion for negative numeric strings');