diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-15 05:54:17 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-04-15 05:54:17 +0000 |
commit | 3d387947bbc471534dd539356ce327ed107dc003 (patch) | |
tree | a177ad110b3c512ff7b49c6a5f0d133a2137ed0b | |
parent | 88d95a4d17f786d117305f530290cdd81b2df059 (diff) | |
download | perl-3d387947bbc471534dd539356ce327ed107dc003.tar.gz |
Add a test for [perl #17753].
p4raw-id: //depot/perl@19215
-rwxr-xr-x | t/op/undef.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/undef.t b/t/op/undef.t index f6e36a5bed..1d169944be 100755 --- a/t/op/undef.t +++ b/t/op/undef.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -print "1..27\n"; +print "1..28\n"; print defined($a) ? "not ok 1\n" : "ok 1\n"; @@ -79,3 +79,9 @@ print $@ =~ /^Modification of a read/ ? "ok 23\n" : "not ok 23\n"; @foo = ( a => 1 ); print defined @foo ? "ok 27\n" : "not ok 27\n"; } + +{ + # [perl #17753] segfault when undef'ing unquoted string constant + eval 'undef tcp'; + print $@ =~ /^Can't modify constant item/ ? "ok 28\n" : "not ok 28\n"; +} |