Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.486 kb
#! /usr/bin/env perl
# http://code.google.com/p/perl-compiler/issues/detail?id=39
# B::CC generated code aborts with "Bizarre copy of ARRAY in leavesub"
use Test::More tests => 1;
use strict;
BEGIN {
unshift @INC, 't';
require "test.pl";
}
my $script = <<'EOF';
sub f1 { 0 }
sub f2 {
my $x;
if ( f1() ) {}
if ($x) {} else { [$x] }
}
my @a = f2();
print "ok";
EOF
ctestok(1, "CC", "ccode39i", $script,
"CC Bizarre copy of ARRAY in leavesub fixed with r596");
Jump to Line
Something went wrong with that request. Please try again.