diff options
author | Mark Murray <markm@FreeBSD.org> | 2000-06-25 11:04:01 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2000-06-25 11:04:01 +0000 |
commit | 5bd17c648f0bbb4ad71945d610980dae7c796874 (patch) | |
tree | 27e7479daa33fdd2e21c9511b9eaeef4bd9d5b51 /contrib/perl5/t/lib/dprof/test6_t | |
parent | 2c00ff843494c9d436d48007c3cdf9c7500976a8 (diff) | |
parent | 120a02d4f3990e59fba1df18a155ff7233b4d827 (diff) |
This commit was generated by cvs2svn to compensate for changes in r62076,
which included commits to RCS files with non-trunk default branches.
Notes
Notes:
svn path=/head/; revision=62077
Diffstat (limited to 'contrib/perl5/t/lib/dprof/test6_t')
-rw-r--r-- | contrib/perl5/t/lib/dprof/test6_t | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/perl5/t/lib/dprof/test6_t b/contrib/perl5/t/lib/dprof/test6_t new file mode 100644 index 000000000000..7b8bf4a722bd --- /dev/null +++ b/contrib/perl5/t/lib/dprof/test6_t @@ -0,0 +1,29 @@ +sub foo { + my $x; + my $y; + print "in sub foo\n"; + for( $x = 1; $x < 100; ++$x ){ + bar(); + for( $y = 1; $y < 100; ++$y ){ + } + } +} + +sub bar { + my $x; + print "in sub bar\n"; + for( $x = 1; $x < 100; ++$x ){ + } + die "bar exiting"; +} + +sub baz { + print "in sub baz\n"; + eval { bar(); }; + eval { foo(); }; +} + +eval { bar(); }; +baz(); +eval { foo(); }; + |