Debian Codegraph @

tests/subs_only

raw
1 #!/usr/bin/perl
2
3 # Copyright 2006-2026, Paul Johnson ([email protected])
4
5 # This software is free. It is licensed under the same terms as Perl itself.
6
7 # The latest version of this software should be available from my homepage:
8 # https://pjcj.net
9
10 # __COVER__ test_parameters -subs_only,1
11
12 use strict;
13 use warnings;
14
15 use lib "tests";
16
17 my @x;
18
19 sub xx {
20 $x[shift]++;
21 }
22
23 for (0 .. 10) {
24 if (time) {
25 xx(0);
26 } else {
27 $x[1]++;
28 }
29 }