about summary refs log tree commit diff
path: root/posix/PCRE.tests
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-11-25 22:32:18 +0000
committerUlrich Drepper <drepper@redhat.com>2004-11-25 22:32:18 +0000
commit20dc2f79f7626201b14bb706688bb2171c7cb59c (patch)
treec12fa685b1064398ce06cc7231f36dda02fe3c82 /posix/PCRE.tests
parentfda81cf586c87af042fc31bda774689c14c0cec4 (diff)
downloadglibc-20dc2f79f7626201b14bb706688bb2171c7cb59c.tar.gz
glibc-20dc2f79f7626201b14bb706688bb2171c7cb59c.tar.xz
glibc-20dc2f79f7626201b14bb706688bb2171c7cb59c.zip
Update.
2004-11-23  Paolo Bonzini  <bonzini@gnu.org>

	* posix/regcomp.c (analyze_tree): Always call calc_epsdest.
	(calc_inveclosure): Use re_node_set_insert_last.
	(parse_dup_op): Lower X{1,5} to (X(X(X(XX?)?)?)?)?
	rather than X?X?X?X?X?.
	* posix/regex_internal.h (re_node_set_insert_last): New declaration.
	* posix/regex_internal.c (re_node_set_insert_last): New function.
	* posix/PCRE.tests: Add testcases.
Diffstat (limited to 'posix/PCRE.tests')
-rw-r--r--posix/PCRE.tests19
1 files changed, 19 insertions, 0 deletions
diff --git a/posix/PCRE.tests b/posix/PCRE.tests
index 7ea5b9e70c..0fb9cadafc 100644
--- a/posix/PCRE.tests
+++ b/posix/PCRE.tests
@@ -2365,3 +2365,22 @@ No match
  0: bc123bc
  1: bc
  2: bc
+
+/^a{2,5}$/
+    aa
+ 0: aa
+    aaa
+ 0: aaa
+    aaaa
+ 0: aaaa
+    aaaaa
+ 0: aaaaa
+    *** Failers
+No match
+    a
+No match
+    b
+No match
+    aaaaab
+No match
+    aaaaaa