diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-06 00:05:30 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-06 00:05:30 +0000 |
commit | 5279fd7ba1c0606f1f1802003fcf0db6598304ff (patch) | |
tree | 0377d8d9e3d33114945957c376c6f37c06e874c6 /t/comp | |
parent | 7f17d5b2c33a5dad6a0dddd89bc805d38f3019e7 (diff) | |
download | perl-5279fd7ba1c0606f1f1802003fcf0db6598304ff.tar.gz |
Document that the evaled syntax errors cause scalar leaks.
p4raw-id: //depot/perl@7569
Diffstat (limited to 't/comp')
-rwxr-xr-x | t/comp/proto.t | 3 |
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 *; }"; |