This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move DProf things around to where they are supposed to be
[perl5.git] / t / lib / dprof / test6_t
CommitLineData
583a019e
GS
1sub foo {
2 my $x;
3 my $y;
4 print "in sub foo\n";
5 for( $x = 1; $x < 100; ++$x ){
6 bar();
7 for( $y = 1; $y < 100; ++$y ){
8 }
9 }
10}
11
12sub bar {
13 my $x;
14 print "in sub bar\n";
15 for( $x = 1; $x < 100; ++$x ){
16 }
17 die "bar exiting";
18}
19
20sub baz {
21 print "in sub baz\n";
22 eval { bar(); };
23 eval { foo(); };
24}
25
26eval { bar(); };
27baz();
28eval { foo(); };
29