source:
trunk/essentials/dev-lang/perl/t/lib/dprof/test6_t
| Last change on this file was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 346 bytes | |
| Line | |
|---|---|
| 1 | sub 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 | |
| 12 | sub bar { |
| 13 | my $x; |
| 14 | print "in sub bar\n"; |
| 15 | for( $x = 1; $x < 100; ++$x ){ |
| 16 | } |
| 17 | die "bar exiting"; |
| 18 | } |
| 19 | |
| 20 | sub baz { |
| 21 | print "in sub baz\n"; |
| 22 | eval { bar(); }; |
| 23 | eval { foo(); }; |
| 24 | } |
| 25 | |
| 26 | eval { bar(); }; |
| 27 | baz(); |
| 28 | eval { foo(); }; |
| 29 |
Note:
See TracBrowser
for help on using the repository browser.
