test for single-line ^ within /m
authorDavid Mitchell <davem@iabyn.com>
Fri, 27 Dec 2013 23:16:23 +0000 (23:16 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 7 Feb 2014 22:39:36 +0000 (22:39 +0000)
This combo doesn't appear to be tested anywhere; specifically, adding this
in re_intuit_start() didn't trigger the assertion when run against the
test suite:

    if (prog->extflags & RXf_ANCH_BOL)
        assert(!multiline);

t/re/re_tests

index 525118d..577a9f0 100644 (file)
@@ -1853,5 +1853,8 @@ A+(*PRUNE)BC(?{}) AAABC   y       $&      AAABC
 \x{100}a{2,3}  \x{100}aaa      y       $&      \x{100}aaa
 ^x?abc?de      abcde   y       $&      abcde
 
+'(?-m:^abc)'m  abcde   y       $&      abc
+'(?-m:^abc)'m  x\nabcde        n       -       -
+
 # Keep these lines at the end of the file
 # vim: softtabstop=0 noexpandtab