diff options
author | David Mitchell <davem@iabyn.com> | 2012-06-04 21:11:34 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-06-13 13:32:56 +0100 |
commit | b4cc4f1f9ba42cc53a5848e8a5d248b0f64d2bb4 (patch) | |
tree | c7d128bcc07bc2785866916e22d46e2e4d9ae93f | |
parent | 2f71aec6f7d3131f7f34eac04936fdc8755a343f (diff) | |
download | perl-b4cc4f1f9ba42cc53a5848e8a5d248b0f64d2bb4.tar.gz |
add test for /(??{exit})/
-rw-r--r-- | t/re/reg_eval_scope.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/re/reg_eval_scope.t b/t/re/reg_eval_scope.t index e1b2a80824..04411fe6b5 100644 --- a/t/re/reg_eval_scope.t +++ b/t/re/reg_eval_scope.t @@ -9,7 +9,7 @@ BEGIN { skip_all_if_miniperl("no dynamic loading on miniperl, no re"); } -plan 29; +plan 30; fresh_perl_is <<'CODE', '781745', {}, '(?{}) has its own lexical scope'; my $x = 7; my $a = 4; my $b = 5; @@ -232,6 +232,12 @@ CODE { stderr => 1 }, '{(?{goto FOO; FOO:})}'; } +# [perl #3590] +fresh_perl_is <<'CODE', '', { stderr => 1 }, '(?{eval{die}})'; +"$_$_$_"; my $foo; # these consume pad entries and ensure a SEGV on opd perls +"" =~ m{(?{exit(0)})}; +CODE + # [perl #92256] { my $y = "a"; $y =~ /a(?{ undef *_ })/ } |