diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-09 15:41:57 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-07-09 15:41:57 +0000 |
commit | 16a5162ef8f03ce7b52872864f357f47f75a1771 (patch) | |
tree | 0d4207eb207c2da13b4144d00f5006f9491b5c88 /t | |
parent | 6f27f9a7eff1b9dfc549cd13594b6977d1eb967d (diff) | |
download | perl-16a5162ef8f03ce7b52872864f357f47f75a1771.tar.gz |
This is getting pretty fragmented (finish up #17441).
p4raw-id: //depot/perl@17443
Diffstat (limited to 't')
-rwxr-xr-x | t/op/eval.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/op/eval.t b/t/op/eval.t index 17b8d9d689..5897b2bac4 100755 --- a/t/op/eval.t +++ b/t/op/eval.t @@ -1,6 +1,6 @@ #!./perl -print "1..45\n"; +print "1..46\n"; eval 'print "ok 1\n";'; @@ -234,3 +234,10 @@ print $@; eval q{my $$$x}; print $@ ? "ok 45\n" : "not ok 45\n"; } + +# [ID 20020623.002] eval "" doesn't clear $@ +{ + $@ = 5; + eval q{}; + print length($@) ? "not ok 46\t# \$\@ = '$@'\n" : "ok 46\n"; +} |