summary refs log tree commit diff
path: root/posix/bug-regex19.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-12-22 06:52:35 +0000
committerUlrich Drepper <drepper@redhat.com>2003-12-22 06:52:35 +0000
commit1cef7b3caef9c520148f15511ec193dcce80d1b2 (patch)
tree8acf73aea465bfc031b6012c4164f3ff43206286 /posix/bug-regex19.c
parent7de661083b26a7cba6d136f7b7311e732c0ff9e0 (diff)
downloadglibc-1cef7b3caef9c520148f15511ec193dcce80d1b2.tar.gz
glibc-1cef7b3caef9c520148f15511ec193dcce80d1b2.tar.xz
glibc-1cef7b3caef9c520148f15511ec193dcce80d1b2.zip
Update.
2003-12-21  Jakub Jelinek  <jakub@redhat.com>

	* posix/regcomp.c (duplicate_node, duplicate_node_closure): Revert
	2003-11-24 changes.
	* posix/regexec.c (group_nodes_into_DFAstates): For CHARACTER with
	NEXT_{,NOT}WORD_CONSTRAINT check word_char bit.
	* posix/bug-regex19.c (tests): Add new tests.

	* posix/regexec.c (check_dst_limits_calc_pos): Fix formatting.

	* posix/regcomp.c (parse_dup_op): Return NULL if dup_elem is NULL,
	after checking syntax.  Optimize.
	(calc_first): Fix comment.
	* posix/bug-regex13.c (tests): Add new tests.
Diffstat (limited to 'posix/bug-regex19.c')
-rw-r--r--posix/bug-regex19.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/posix/bug-regex19.c b/posix/bug-regex19.c
index f24e0aa730..4000b19b4d 100644
--- a/posix/bug-regex19.c
+++ b/posix/bug-regex19.c
@@ -246,6 +246,9 @@ static struct test_s
   {ERE, "(\\<|[A].)[A~C]", "DACC", 0, 1},
   {ERE, "(\\<|[A].)[A~C]", "B!A=", 0, 2},
   {ERE, "(\\<|[A].)[A~C]", "B~C", 0, 2},
+  {ERE, "^[^A]*\\bB", "==B", 0, 0},
+  {ERE, "^[^A]*\\bB", "CBD!=B", 0, 0},
+  {ERE, "[^A]*\\bB", "==B", 2, 2}
 };
 
 int