issue185.t 441 B

12345678910111213141516171819
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=185
  3. # bytes_heavy
  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.43_03";
  12. ctestok(1,'C,-O3','ccode185i',<<'EOF',($B::C::VERSION lt $when ? "TODO " : "").'#185 bytes_heavy');
  13. my $a = pack("U", 0xFF);
  14. use bytes;
  15. print "not " unless $a eq "\xc3\xbf" && bytes::length($a) == 2;
  16. print "ok\n"
  17. EOF