File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ skip_all_without_unicode_tables();
28
28
my $has_locales = locales_enabled(' LC_CTYPE' );
29
29
my $utf8_locale = find_utf8_ctype_locale();
30
30
31
- plan tests => 1293 ; # Update this when adding/deleting tests.
31
+ plan tests => 1295 ; # Update this when adding/deleting tests.
32
32
33
33
run_tests() unless caller ;
34
34
@@ -2627,6 +2627,22 @@ SKIP:
2627
2627
2628
2628
}
2629
2629
2630
+ {
2631
+ # github #21661
2632
+ fresh_perl_is(<<'PROG' , <<'EXPECT' , {}, " double-free on fatal warn with existing error" );
2633
+ use warnings FATAL => qw(all);
2634
+ /() {}/X;
2635
+ PROG
2636
+ Unknown regexp modifier " /X" at - line 2, at end of line
2637
+ Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m / () { <-- HERE }/ at - line 2.
2638
+ Execution of - aborted due to compilation errors.
2639
+ EXPECT
2640
+ fresh_perl_is(<<'PROG' , " " , {}, " leak if __WARN__ handler dies" );
2641
+ use warnings;
2642
+ local $SIG{__WARN__} = sub { die; };
2643
+ eval "qr/()x{/;" for 1..10;
2644
+ PROG
2645
+ }
2630
2646
} # End of sub run_tests
2631
2647
2632
2648
1;
You can’t perform that action at this time.
0 commit comments