| 1 | # Test that fastprof doesn't break | ||||||||||
| 2 | # &bar; used as &bar(@_); | ||||||||||
| 3 | |||||||||||
| 4 | 16 | ▶ | sub foo1 { | ||||||||
|
Subroutine
foo1: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 16 | print "in foo1(@_)\n"; | |||||||||
| 6 | 16 | bar(@_); | |||||||||
| 7 | } | ||||||||||
| 8 | 16 | ▶ | sub foo2 { | ||||||||
|
Subroutine
foo2: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 16 | print "in foo2(@_)\n"; | |||||||||
| 10 | 16 | &bar; | |||||||||
| 11 | } | ||||||||||
| 12 | 32 | ▶ | sub bar { | ||||||||
|
Subroutine
bar: called CC=2 SCAR=7.1
| |||||||||||
| 13 | 32 | print "in bar(@_)\n"; | |||||||||
| 14 | 32 | ▶ | if( @_ > 0 ){ | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 32 | &yeppers; | |||||||||
| 16 | } | ||||||||||
| 17 | } | ||||||||||
| 18 | 32 | ▶ | sub yeppers { | ||||||||
|
Subroutine
yeppers: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 32 | print "rest easy\n"; | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 16 | &foo1( A ); | |||||||||
| 23 | 16 | &foo2( B ); | |||||||||