From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
12345678910111213141516171819 #! /usr/bin/env perl# http://code.google.com/p/perl-compiler/issues/detail?id=37# orassign ||= with old B::CCuse Test::More tests => 1;use strict;BEGIN { unshift @INC, 't'; require TestBC;}my $script = <<'EOF';my $x;$x ||= 1;print "ok" if $x;EOFuse B::CC;ctestok(1, "CC", "ccode37i", $script, $B::CC::VERSION < 1.08 ? "TODO B::CC issue 37" : "orassign ||=");
#! /usr/bin/env perl
# http://code.google.com/p/perl-compiler/issues/detail?id=37
# orassign ||= with old B::CC
use
Test::More
tests
=> 1;
strict;
BEGIN {
unshift
@INC
,
't'
;
require
TestBC;
}
my
$script
=
<<'EOF';
my $x;
$x ||= 1;
print "ok" if $x;
EOF
B::CC;
ctestok(1,
"CC"
"ccode37i"
$B::CC::VERSION
< 1.08 ?
"TODO B::CC issue 37"
:
"orassign ||="
);