diff options
author | Father Chrysostomos <sprout@cpan.org> | 2013-06-15 19:14:14 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-07-25 23:47:58 -0700 |
commit | 2d885586322c253eddc480955aad8cbaef88e2ca (patch) | |
tree | 65ff25163400454448e98d875619c04a79a89e36 /t/cmd | |
parent | 1898a2f14d8075cd689403a1f731596867191835 (diff) | |
download | perl-2d885586322c253eddc480955aad8cbaef88e2ca.tar.gz |
To-do tests for perl #78194
plus a regular (not to-do) test for an lvalue sub case that already
works properly.
Diffstat (limited to 't/cmd')
-rw-r--r-- | t/cmd/for.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/cmd/for.t b/t/cmd/for.t index 27fb5a2517..e187f7f46b 100644 --- a/t/cmd/for.t +++ b/t/cmd/for.t @@ -1,6 +1,6 @@ #!./perl -print "1..14\n"; +print "1..15\n"; for ($i = 0; $i <= 10; $i++) { $x[$i] = $i; @@ -95,3 +95,9 @@ print $@ =~ /Use of freed value in iteration/ ? "ok" : "not ok", " 13\n"; print $x == 1 ? "ok" : "not ok", " 14 - double destroy, x=$x\n"; } +# [perl #78194] foreach() aliasing op return values +for ("${\''}") { + print "not " unless \$_ == \$_; + print 'ok 15 - [perl \#78194] \$_ == \$_ inside for("$x"){...}', + " # TODO \n"; +} |