summaryrefslogtreecommitdiff
path: root/testdata/testinput16
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-06 17:28:42 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-06 17:28:42 +0000
commit98a04818c6e15a1eab45c5224e6db3429496536e (patch)
tree35d28ed086837c67022617b1e58b3ed3b301d6c8 /testdata/testinput16
parentef48210c5e60226937e07a00915f72f45cd9bacb (diff)
downloadpcre2-98a04818c6e15a1eab45c5224e6db3429496536e.tar.gz
Work on the tests for JIT.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@97 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testinput16')
-rw-r--r--testdata/testinput16168
1 files changed, 87 insertions, 81 deletions
diff --git a/testdata/testinput16 b/testdata/testinput16
index 7240158..47bbb11 100644
--- a/testdata/testinput16
+++ b/testdata/testinput16
@@ -1,81 +1,87 @@
-# This set of tests is run only with the 8-bit library. It tests the POSIX
-# interface, which is supported only with the 8-bit library. This test should
-# not be run with JIT (which is not available for the POSIX interface).
-
-#forbid_utf
-#pattern posix
-
-/abc/
- abc
- *** Failers
-
-/^abc|def/
- abcdef
- abcdef\=notbol
-
-/.*((abc)$|(def))/
- defabc
- defabc\=noteol
-
-/the quick brown fox/
- the quick brown fox
- *** Failers
- The Quick Brown Fox
-
-/the quick brown fox/i
- the quick brown fox
- The Quick Brown Fox
-
-/abc.def/
- *** Failers
- abc\ndef
-
-/abc$/
- abc
- abc\n
-
-/(abc)\2/
-
-/(abc\1)/
- abc
-
-/a*(b+)(z)(z)/
- aaaabbbbzzzz
- aaaabbbbzzzz\=ovector=0
- aaaabbbbzzzz\=ovector=1
- aaaabbbbzzzz\=ovector=2
-
-/ab.cd/
- ab-cd
- ab=cd
- ** Failers
- ab\ncd
-
-/ab.cd/s
- ab-cd
- ab=cd
- ab\ncd
-
-/a(b)c/no_auto_capture
- abc
-
-/a(?P<name>b)c/no_auto_capture
- abc
-
-/a?|b?/
- abc
- ** Failers
- ddd\=notempty
-
-/\w+A/
- CDAAAAB
-
-/\w+A/ungreedy
- CDAAAAB
-
-/\Biss\B/I,aftertext
- Mississippi
-
-/abc/\
-
-# End of testdata/testinput16
+# This test is run only when JIT support is available. It checks for a
+# successful and an unsuccessful JIT compile, and a couple of things that are
+# different with JIT.
+
+/abc/I,jit
+
+/(?(?C1)(?=a)a)/I,jit
+
+/(?(?C1)(?=a)a)/I
+
+/a*/I
+
+/(?(R)a*(?1)|((?R))b)/jit
+ aaaabcde
+
+# Test various compile modes
+
+#pattern jit,jitverify
+
+/abcd/
+ abcd
+ xyz
+
+/abcd/
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=1
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+ xyz\=ps
+
+/abcd/jit=2
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=3
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=4
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=5
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=6
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/jit=7
+ abcd
+ ab\=ps
+ ab\=ph
+ xyz
+
+/abcd/I,jit=2
+
+/(*NO_START_OPT)a(*:m)b/mark
+ a
+
+/^12345678abcd/m
+ 12345678abcd
+
+# End of testinput15