diff options
Diffstat (limited to 't/op/eval.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"; +} |