summaryrefslogtreecommitdiff
path: root/t/op/sub_lval.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/sub_lval.t')
-rwxr-xr-xt/op/sub_lval.t5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/op/sub_lval.t b/t/op/sub_lval.t
index a17c3c62c5..003c1a0a50 100755
--- a/t/op/sub_lval.t
+++ b/t/op/sub_lval.t
@@ -423,10 +423,7 @@ $a->() = 8;
print "# '$nnewvar'.\nnot " unless $nnewvar eq '8';
print "ok 46\n";
-# This must happen at run time
-eval {
- sub AUTOLOAD : lvalue { $newvar };
-};
+eval 'sub AUTOLOAD : lvalue { $newvar }';
foobar() = 12;
print "# '$newvar'.\nnot " unless $newvar eq "12";
print "ok 47\n";