diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-05-27 18:24:42 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2014-05-27 18:24:42 +0000 |
commit | 7535acc4e3072709aacf5179e8e8e14200da4a17 (patch) | |
tree | defba92119266e297d36c9eebb62b09611d97d36 /testdata | |
parent | b653a4d00e6628810fe80cf6b895c78ea7ac0da0 (diff) | |
download | pcre-7535acc4e3072709aacf5179e8e8e14200da4a17.tar.gz |
Give error for \x{} and \o{}.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1481 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput2 | 12 | ||||
-rw-r--r-- | testdata/testoutput2 | 17 |
2 files changed, 29 insertions, 0 deletions
diff --git a/testdata/testinput2 b/testdata/testinput2 index 0a49603..81be076 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -4064,4 +4064,16 @@ backtracking verbs. --/ /^\w+(?>\s*)(?<=\w)/BZ +/\othing/ + +/\o{}/ + +/\o{whatever}/ + +/\xthing/ + +/\x{}/ + +/\x{whatever}/ + /-- End of testinput2 --/ diff --git a/testdata/testoutput2 b/testdata/testoutput2 index d0880db..114817a 100644 --- a/testdata/testoutput2 +++ b/testdata/testoutput2 @@ -14165,4 +14165,21 @@ Failed: parentheses are too deeply nested (stack check) at offset 0 End ------------------------------------------------------------------ +/\othing/ +Failed: missing opening brace after \o at offset 1 + +/\o{}/ +Failed: digits missing in \x{} or \o{} at offset 1 + +/\o{whatever}/ +Failed: non-octal character in \o{} (closing brace missing?) at offset 3 + +/\xthing/ + +/\x{}/ +Failed: digits missing in \x{} or \o{} at offset 3 + +/\x{whatever}/ +Failed: non-hex character in \x{} (closing brace missing?) at offset 3 + /-- End of testinput2 --/ |