Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 53 lines (41 sloc) 0.602 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
#!/usr/bin/perl

# Copyright 2002-2012, Paul Johnson (paul@pjcj.net)

# This software is free. It is licensed under the same terms as Perl itself.

# The latest version of this software should be available from my homepage:
# http://www.pjcj.net

# __COVER__ skip_test $] == 5.010
# __COVER__ skip_reason One test fails only under make test on 5.10.0 unhreaded

use strict;
use warnings;

use lib -d "t" ? "t" : "..";

my $x;

eval <<'EOS';
sub e
{
    $x++;
    $x
}
EOS

eval <<'EOS';
sub f
{
    $x++;
    $x
}

sub g
{
    $x++;
}

sub h
{
    $x++;
}
EOS

e();
e();
e();
f();
f();
h();
h();
h();
Something went wrong with that request. Please try again.