Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.389 kB
#! /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;
use strict;
BEGIN {
unshift @INC, 't';
require "test.pl";
}
my $script = <<'EOF';
my $x;
$x ||= 1;
print "ok" if $x;
EOF
use B::CC;
ctestok(1, "CC", "ccode37i", $script,
$B::CC::VERSION < 1.08 ? "TODO B::CC issue 37" : "orassign ||=");
Jump to Line
Something went wrong with that request. Please try again.