diff options
Diffstat (limited to 'cpan/Devel-DProf/dprof/test5_t')
-rw-r--r-- | cpan/Devel-DProf/dprof/test5_t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cpan/Devel-DProf/dprof/test5_t b/cpan/Devel-DProf/dprof/test5_t new file mode 100644 index 0000000000..0b1113757f --- /dev/null +++ b/cpan/Devel-DProf/dprof/test5_t @@ -0,0 +1,25 @@ +# Test that dprof doesn't break +# &bar; used as &bar(@_); + +sub foo1 { + print "in foo1(@_)\n"; + bar(@_); +} +sub foo2 { + print "in foo2(@_)\n"; + &bar; +} +sub bar { + print "in bar(@_)\n"; + if( @_ > 0 ){ + &yeppers; + } +} +sub yeppers { + print "rest easy\n"; +} + + +&foo1( A ); +&foo2( B ); + |