1# This set of tests is run only with the 8-bit library. It tests the POSIX
2# interface, which is supported only with the 8-bit library. This test should
3# not be run with JIT (which is not available for the POSIX interface).
4
5#forbid_utf
6#pattern posix
7
8# Test some invalid options
9
10/abc/auto_callout
11
12/abc/
13   abc\=find_limits
14
15/abc/
16  abc\=partial_hard
17
18/a(())bc/parens_nest_limit=1
19
20/abc/allow_surrogate_escapes,max_pattern_length=2
21
22# Real tests
23
24/abc/
25    abc
26
27/^abc|def/
28    abcdef
29    abcdef\=notbol
30
31/.*((abc)$|(def))/
32    defabc
33    defabc\=noteol
34
35/the quick brown fox/
36    the quick brown fox
37\= Expect no match
38    The Quick Brown Fox
39
40/the quick brown fox/i
41    the quick brown fox
42    The Quick Brown Fox
43
44/(*LF)abc.def/
45\= Expect no match
46    abc\ndef
47
48/(*LF)abc$/
49    abc
50    abc\n
51
52/(abc)\2/
53
54/(abc\1)/
55\= Expect no match
56    abc
57
58/a*(b+)(z)(z)/
59    aaaabbbbzzzz
60    aaaabbbbzzzz\=ovector=0
61    aaaabbbbzzzz\=ovector=1
62    aaaabbbbzzzz\=ovector=2
63
64/(*ANY)ab.cd/
65    ab-cd
66    ab=cd
67\= Expect no match
68    ab\ncd
69
70/ab.cd/s
71    ab-cd
72    ab=cd
73    ab\ncd
74
75/a(b)c/posix_nosub
76    abc
77
78/a(?P<name>b)c/posix_nosub
79    abc
80
81/(a)\1/posix_nosub
82    zaay
83
84/a?|b?/
85    abc
86\= Expect no match
87    ddd\=notempty
88
89/\w+A/
90   CDAAAAB
91
92/\w+A/ungreedy
93   CDAAAAB
94
95/\Biss\B/I,aftertext
96    Mississippi
97
98/abc/\
99
100"(?(?C)"
101
102"(?(?C))"
103
104/abcd/substitute_extended
105
106/\[A]{1000000}**/expand,regerror_buffsize=31
107
108/\[A]{1000000}**/expand,regerror_buffsize=32
109
110//posix_nosub
111    \=offset=70000
112
113/^d(e)$/posix
114    acdef\=posix_startend=2:4
115    acde\=posix_startend=2
116\= Expect no match
117    acdef
118    acdef\=posix_startend=2
119
120/^a\x{00}b$/posix
121    a\x{00}b\=posix_startend=0:3
122
123/"A" 00 "B"/hex
124    A\x{00}B\=posix_startend=0:3
125
126/ABC/use_length
127    ABC
128
129/a\b(c/literal,posix
130    a\\b(c
131
132/a\b(c/literal,posix,dotall
133
134/((a)(b)?(c))/posix
135    123ace
136    123ace\=posix_startend=2:6
137
138# End of testdata/testinput18
139