blob: fa31d30f7d88098dc5f75d0c0185414f33af26e6 [file] [log] [blame]
Tristan Matthews04616462013-11-14 16:09:34 -05001/-- This test is run only when JIT support is available. It checks for a
2successful and an unsuccessful JIT compile and save and restore behaviour,
3and a couple of things that are different with JIT. --/
4
5/abc/S+I
6Capturing subpattern count = 0
7No options
8First char = 'a'
9Need char = 'c'
10Subject length lower bound = 3
11No set of starting bytes
12JIT study was successful
13
14/ab(*COMMIT)/S+I
15Capturing subpattern count = 0
16No options
17First char = 'a'
18Need char = 'b'
19Subject length lower bound = 2
20No set of starting bytes
21JIT study was not successful
22
23/abc/S+I>testsavedregex
24Capturing subpattern count = 0
25No options
26First char = 'a'
27Need char = 'c'
28Subject length lower bound = 3
29No set of starting bytes
30JIT study was successful
31Compiled pattern written to testsavedregex
32Study data written to testsavedregex
33
34<testsavedregex
35Compiled pattern loaded from testsavedregex
36Study data loaded from testsavedregex
37 abc
38 0: abc
39
40/a*/SI
41Capturing subpattern count = 0
42No options
43No first char
44No need char
45Study returned NULL
46
47/(?(R)a*(?1)|((?R))b)/S+
48 aaaabcde
49Error -27 (JIT stack limit reached)
50
51/-- End of testinput14 --/