File: test14.pm

package info (click to toggle)
libdevel-nytprof-perl 4.04-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,124 kB
  • ctags: 1,330
  • sloc: perl: 4,392; ansic: 92; makefile: 19
file content (18 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package test14;
use AutoLoader 'AUTOLOAD';

# The tests run with start=init so we need to arrange to execute some
# profiled code before the first autosplit sub gets loaded in order to
# test the handling of autosplit subs. We could use an INIT block for
# that but calling a sub suits the tests better for obscure reasons.
sub pre { 1 }

1;
__END__
sub foo {
  $&;
}

sub bar {
  eval 2;
}