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-8 mode
23 # Autopossessification tests
26 ------------------------------------------------------------------
34 ------------------------------------------------------------------
37 ------------------------------------------------------------------
45 ------------------------------------------------------------------
64 0: X\x{f0}\x{91}\x{88}
67 0: X\x{f0}\x{91}\x{88}
108 X\x{11234}\x{512}\x{11234}Z
121 0: X\x{f0}\x{91}\x{88}
123 0: X\x{f0}\x{91}\x{88}
125 0: X\x{f0}\x{91}\x{88}
127 0: X\x{f0}\x{91}\x{88}
149 # This one is here not because it's different to Perl, but because the way
150 # the captured single code unit is displayed. (In Perl it becomes a character,
151 # and you can't tell the difference.)
163 # This one is here because Perl gives out a grumbly error message (quite
164 # correctly, but that messes up comparisons).
167 \= Expect no match in 8-bit mode
171 /^ab\C/utf,no_start_optimize
172 \= Expect no match - tests \C at end of subject