summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-06 00:05:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-06 00:05:30 +0000
commit5279fd7ba1c0606f1f1802003fcf0db6598304ff (patch)
tree0377d8d9e3d33114945957c376c6f37c06e874c6 /t/comp
parent7f17d5b2c33a5dad6a0dddd89bc805d38f3019e7 (diff)
downloadperl-5279fd7ba1c0606f1f1802003fcf0db6598304ff.tar.gz
Document that the evaled syntax errors cause scalar leaks.
p4raw-id: //depot/perl@7569
Diffstat (limited to 't/comp')
-rwxr-xr-xt/comp/proto.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/comp/proto.t b/t/comp/proto.t
index 9ac1e0f470..31c78396c0 100755
--- a/t/comp/proto.t
+++ b/t/comp/proto.t
@@ -487,6 +487,9 @@ sub sreftest (\$$) {
}
# test prototypes when they are evaled and there is a syntax error
+#
+# NOTE: evaled syntax errors mean scalar leaks
+#
for my $p ( "", qw{ () ($) ($@) ($%) ($;$) (&) (&\@) (&@) (%) (\%) (\@) } ) {
no warnings 'redefine';
my $eval = "sub evaled_subroutine $p { &void *; }";