issue240.t 466 B

1234567891011121314151617
  1. #! /usr/bin/env perl
  2. # http://code.google.com/p/perl-compiler/issues/detail?id=240
  3. # not repro. fails only as file
  4. use strict;
  5. BEGIN {
  6. unshift @INC, 't';
  7. require "test.pl";
  8. }
  9. use Test::More tests => 1;
  10. ctestok(1,'C,-O3','ccode240i',<<'EOF',($ENV{HARNESS_ACTIVE} ? "TODO ":"").'#240 not repro unicode race condition with \U');
  11. my $a = "\x{100}\x{101}Aa";
  12. print "ok\n" if "\U$a" eq "\x{100}\x{100}AA";
  13. my $b = "\U\x{149}cD"; # no pb without that line
  14. __END__
  15. EOF