From ca76e4e9adfa1629d8fee4608cbeab9d9ba91ed3 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 4 Mar 2016 13:14:30 -0700 Subject: PATCH: [perl #126141]: qr/]]]]][\\/ fails to raise error This was due to the trailing \ trying to look at the next character without verifying that one actually existed. --- t/lib/warnings/regcomp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 't') diff --git a/t/lib/warnings/regcomp b/t/lib/warnings/regcomp index af8c06bf5c..5d1367842c 100644 --- a/t/lib/warnings/regcomp +++ b/t/lib/warnings/regcomp @@ -73,3 +73,10 @@ qr/(?[[:digit: ])/ EXPECT Assuming NOT a POSIX class since no blanks are allowed in one in regex; marked by <-- HERE in m/(?[[:digit: ] <-- HERE )/ at - line 2. syntax error in (?[...]) in regex m/(?[[:digit: ])/ at - line 2. +######## +# NAME [perl #126141] +# OPTION fatal +eval {/$_/}, print "$_ ==> ", $@ || "OK!\n" for "]]]]]]]]][\\", "]]]]][\\" +EXPECT +]]]]]]]]][\ ==> Unmatched [ in regex; marked by <-- HERE in m/]]]]]]]]][\ <-- HERE / at - line 2. +]]]]][\ ==> Unmatched [ in regex; marked by <-- HERE in m/]]]]][\ <-- HERE / at - line 2. -- cgit v1.2.1