summaryrefslogtreecommitdiff
path: root/t/op/coresubs.t
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-25 18:10:53 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-25 23:02:10 -0700
commit9d3c658e5c246089e541ed0d652aaccf018f16e9 (patch)
treea8b31caa71624daad4c4a8bd0bab38d19ec35532 /t/op/coresubs.t
parent2f8d417bd28b4abb5998a05fa0a9ebeb970ca845 (diff)
downloadperl-9d3c658e5c246089e541ed0d652aaccf018f16e9.tar.gz
&CORE::exit()
This commit allows &CORE::exit to be called through references and via ampersand syntax. pp_exit is modified to take into account the nulls pushed on to the stack in pp_coreargs, since pp_coreargs has no other way to tell exit how many arguments it’s actually getting.
Diffstat (limited to 't/op/coresubs.t')
-rw-r--r--t/op/coresubs.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/op/coresubs.t b/t/op/coresubs.t
index 9ed64ccbe7..c0f59661ec 100644
--- a/t/op/coresubs.t
+++ b/t/op/coresubs.t
@@ -320,6 +320,11 @@ test_proto $_ for qw(
endgrent endhostent endnetent endprotoent endpwent endservent
);
+test_proto 'exit';
+$tests ++;
+is runperl(prog => '&CORE::exit; END { print q-ok- }'), 'ok',
+ '&exit with no args';
+
test_proto 'fork';
test_proto 'formline';