issue183.t 404 B

123456789101112131415
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=183
  3. # Special case: ->import should fail silently
  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. ctestok(1,'C,-O3','ccode183i','main->import();print q(ok)',
  13. ($B::C::VERSION lt $when ? "TODO " : "").'#183 ->import should fail silently');