diff options
author | Steve Peters <steve@fisharerojo.org> | 2007-06-28 20:33:32 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2007-06-28 20:33:32 +0000 |
commit | 0df5f63f6809bbf24ffde62fa2804f0041470b74 (patch) | |
tree | e789818c073f9293522477e1c2f1c4fa2d284693 /t/op/goto.t | |
parent | 5a2b2173649670c2446e51812f4954c50ad80082 (diff) | |
download | perl-0df5f63f6809bbf24ffde62fa2804f0041470b74.tar.gz |
Add a TODO test cases RT# 43403.
p4raw-id: //depot/perl@31494
Diffstat (limited to 't/op/goto.t')
-rwxr-xr-x | t/op/goto.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/t/op/goto.t b/t/op/goto.t index a034682ec1..9f9849025f 100755 --- a/t/op/goto.t +++ b/t/op/goto.t @@ -10,7 +10,8 @@ BEGIN { use warnings; use strict; -plan tests => 57; +plan tests => 58; +our $TODO; our $foo; while ($?) { @@ -446,3 +447,16 @@ like($@, qr/Can't goto subroutine from an eval-block/, 'eval block'); ); like($r, qr/bar/, "goto &foo in warn"); } + +TODO: { + local $TODO = "[perl #43403] goto() from an if to an else doesn't undo local +() changes"; + our $global = "unmodified"; + if ($global) { # true but not constant-folded + local $global = "modified"; + goto ELSE; + } else { + ELSE: is($global, "unmodified"); + } +} + |