Plan 9 from Bell Labs’s /usr/web/sources/contrib/gabidiaz/root/sys/src/cmd/perl/t/lib/dprof/test5_t

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


# 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 );


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.