#!./perl -w
BEGIN {
chdir 't' if -d 't';
}
require "./test.pl";
my $r;
my @tmpfiles = ();
SKIP: {
print $f <<'__SWDTEST__';
sub bar { $_[0] * $_[0] }
sub foo {
my $s;
}
close $f;
$| = 1; # Unbufferize.
$r = runperl(
);
like($r, qr/^main,swdtest.tmp,9;Foo,swdtest.tmp,5;Foo,swdtest.tmp,6;Foo,swdtest.tmp,6;Bar,swdtest.tmp,2;Bar,swdtest.tmp,2;Bar,swdtest.tmp,2;$/i);
}