about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-08 22:39:08 +0000
committerRoland McGrath <roland@gnu.org>2002-11-08 22:39:08 +0000
commit2b49744308c65a95862b4ae197f27cec3ae8beaa (patch)
treeabcacbf00d1003ce98f3e84cdefb079736bec24d
parente8c1660f7ba480c5a17103b557941fc6db7a5146 (diff)
downloadglibc-2b49744308c65a95862b4ae197f27cec3ae8beaa.tar.gz
glibc-2b49744308c65a95862b4ae197f27cec3ae8beaa.tar.xz
glibc-2b49744308c65a95862b4ae197f27cec3ae8beaa.zip
* posix/bug-regex13.c (tests): Add new test.
-rw-r--r--ChangeLog2
-rw-r--r--posix/bug-regex13.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d9a987ac58..9b36a1fe0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2002-11-08  Jakub Jelinek  <jakub@redhat.com>
 
+	* posix/bug-regex13.c (tests): Add new test.
+
 	* string/test-strchr.c (stupid_strchr): New function.
 	(do_random_tests): Make sure the string is zero terminated.
 	* string/test-strpbrk.c (stupid_strpbrk): New function.
diff --git a/posix/bug-regex13.c b/posix/bug-regex13.c
index 589293a7c0..5ff5adeba3 100644
--- a/posix/bug-regex13.c
+++ b/posix/bug-regex13.c
@@ -33,6 +33,7 @@ static struct
 } tests[] = {
   {RE_BACKSLASH_ESCAPE_IN_LISTS, "[0\\-9]", "1", -1}, /* It should not match.  */
   {RE_BACKSLASH_ESCAPE_IN_LISTS, "[0\\-9]", "-", 0}, /* It should match.  */
+  {RE_SYNTAX_POSIX_BASIC, "s1\n.*\ns3", "s1\ns2\ns3", 0}
 };
 
 int