1 # Tests of \C when Unicode support is available. Note that \C is not supported
2 # for DFA matching in UTF mode, so this test is not run with -dfa. The output
3 # of this test is different in 8-, 16-, and 32-bit modes. Some tests may match
4 # in some widths and not in others.
7 Capturing subpattern count = 0
12 Subject length lower bound = 0
16 # This should produce an error diagnostic (\C in UTF lookbehind) in 8-bit and
17 # 16-bit modes, but not in 32-bit mode.
20 Failed: error 136 at offset 0: \C is not allowed in a lookbehind assertion in UTF-16 mode
23 # Autopossessification tests
26 ------------------------------------------------------------------
34 ------------------------------------------------------------------
37 ------------------------------------------------------------------
45 ------------------------------------------------------------------
105 0: X\x{11234}\x{512}YZ
106 X\x{11234}\x{512}\x{11234}Z
107 0: X\x{11234}\x{512}\x{11234}
147 # This one is here not because it's different to Perl, but because the way
148 # the captured single code unit is displayed. (In Perl it becomes a character,
149 # and you can't tell the difference.)
161 # This one is here because Perl gives out a grumbly error message (quite
162 # correctly, but that messes up comparisons).
165 \= Expect no match in 8-bit mode
169 /^ab\C/utf,no_start_optimize
170 \= Expect no match - tests \C at end of subject