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