#! /usr/bin/env perl
BEGIN {
unless
(-d
".git"
and !
$ENV
{NO_AUTHOR}) {
print
"1..0 #SKIP Only if -d .git\n"
;
exit
;
}
}
BEGIN {
unshift
@INC
,
't'
;
}
SKIP: {
skip
"dorassign was added with perl 5.10.0"
, 4
if
$] < 5.010;
ctestok(1,
"CC"
,
"ccode45i"
,
'my $x; $x//=1; print q(ok) if $x;'
,
(
$B::CC::VERSION
< 1.09 ?
"TODO "
:
""
).
"dorassign other fixed with B-C-1.30"
);
ctestok(2,
"CC"
,
"ccode45i"
,
'my $x=1; $x//=0; print q(ok) if $x;'
,
(
$B::CC::VERSION
< 1.09 ?
"TODO "
:
""
).
"dorassign next fixed with B-C-1.30"
);
ctestok(3,
"CC"
,
"ccode45i"
,
'my ($x,$y); $x=$y//1;print "ok" if $x;'
);
ctestok(4,
"CC"
,
"ccode45i"
,
'my $y=1; my $x=$y//0;print "ok" if $x;'
);
}