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 = 5
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.
23 # Autopossessification tests
26 ------------------------------------------------------------------
34 ------------------------------------------------------------------
37 ------------------------------------------------------------------
45 ------------------------------------------------------------------
103 0: X\x{11234}\x{512}YZ
104 X\x{11234}\x{512}\x{11234}Z
105 0: X\x{11234}\x{512}\x{11234}Z
121 0: X\x{11234}\x{512}Y
139 0: a\x{12257}\x{11234}b
145 # This one is here not because it's different to Perl, but because the way
146 # the captured single code unit is displayed. (In Perl it becomes a character,
147 # and you can't tell the difference.)
159 # This one is here because Perl gives out a grumbly error message (quite
160 # correctly, but that messes up comparisons).
163 \= Expect no match in 8-bit mode
167 /^ab\C/utf,no_start_optimize
168 \= Expect no match - tests \C at end of subject