1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

	* posix/bug-regex7.c: New file.
	* posix/bug-regex8.c: New file.
	* posix/Makefile (tests): Add bug-regex7 and bug-regex8.

2002-07-16  Stepan Kasal  <kasal@math.cas.cz>

	* posix/bug-regex4.c (main): Fix typos.
	* posix/bug-regex6.c (main): Likewise.

	* posix/bug-regex6.c (main): Fix warnings.

	* stdio-common/printf_fp.c (__printf_fp): If _FPIO_CONST_SHIFT is
This commit is contained in:
Ulrich Drepper
2002-07-27 08:28:46 +00:00
parent ac3d553b8b
commit d683fe11f9
6 changed files with 202 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/* Test for re_search_2.
Copyright (C) 2001 Free Software Foundation, Inc.
Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2001.
@ -38,7 +38,7 @@ main (void)
s = re_compile_pattern ("ab[cde]", 7, &regex);
if (s != NULL)
{
puts ("re_compile_pattern return non-NULL value");
puts ("re_compile_pattern returned non-NULL value");
result = 1;
}
else
@ -48,7 +48,7 @@ main (void)
match[2] = re_search_2 (&regex, "xya", 3, "bd", 2, 2, 6, NULL, 8);
if (match[0] != 2 || match[1] != 0 || match[2] != 2)
{
printf ("re_match returned %d,%d,%d, expected 2,0,2\n",
printf ("re_search_2 returned %d,%d,%d, expected 2,0,2\n",
match[0], match[1], match[2]);
result = 1;
}