summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/re/pat.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/t/re/pat.t b/t/re/pat.t
index 54d44ac046..7b03e41fce 100644
--- a/t/re/pat.t
+++ b/t/re/pat.t
@@ -21,7 +21,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 464; # Update this when adding/deleting tests.
+plan tests => 465; # Update this when adding/deleting tests.
run_tests() unless caller;
@@ -1215,6 +1215,13 @@ EOP
like("\xffb", qr/$pat/i, "/i: utf8 pattern, non-utf8 string, latin1-char preceding matching char in string");
}
+ { # Crash with @a =~ // warning
+ local $SIG{__WARN__} = sub {
+ pass 'no crash for @a =~ // warning'
+ };
+ eval ' sub { my @a =~ // } ';
+ }
+
} # End of sub run_tests
1;