summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@semiotic.systems>2021-06-06 16:17:53 -0400
committerRicardo Signes <rjbs@semiotic.systems>2021-07-25 15:37:14 -0400
commit81cfb012ab267ccb794ad2e0f4f1529768f1533d (patch)
tree8c09d4e8b4fa828d15339574eb48e1f1526957c9 /lib
parent6fee8938be94005a9d23ee895045877d49e53932 (diff)
downloadperl-81cfb012ab267ccb794ad2e0f4f1529768f1533d.tar.gz
B::Deparse tests: turn on "switch" to test break() behavior
Diffstat (limited to 'lib')
-rw-r--r--lib/B/Deparse-core.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/B/Deparse-core.t b/lib/B/Deparse-core.t
index 9d891a7507..ae2a800682 100644
--- a/lib/B/Deparse-core.t
+++ b/lib/B/Deparse-core.t
@@ -87,6 +87,7 @@ sub testit {
no strict 'vars';
$code = "sub { state sub $keyword; ${vars}() = $expr }";
$code = "use feature 'isa';\n$code" if $keyword eq "isa";
+ $code = "use feature 'switch';\n$code" if $keyword eq "break";
$code_ref = eval $code or die "$@ in $expr";
}
else {
@@ -96,6 +97,7 @@ sub testit {
import subs $keyword;
$code = "no strict 'vars'; sub { ${vars}() = $expr }";
$code = "use feature 'isa';\n$code" if $keyword eq "isa";
+ $code = "use feature 'switch';\n$code" if $keyword eq "break";
$code_ref = eval $code or die "$@ in $expr";
}