1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00
1999-09-22  Andreas Jaeger  <aj@suse.de>

	* stdio-common/tstscanf.c (main): Add test case from PR libc/1313
	reported by Ben Caradoc-Davies <bmcd@physics.otago.ac.nz>.
		
1999-09-22  Andreas Schwab  <schwab@suse.de>

	* stdio-common/vfscanf.c: Fix width handling when scanning floats.

1999-04-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* elf/Makefile (CFLAGS-multiload.c): Change to allow building in
	the source directory.  Fixes PR libc/1059.
This commit is contained in:
Ulrich Drepper
1999-09-22 16:03:46 +00:00
parent 5b5255f197
commit 9df541684a
6 changed files with 516 additions and 458 deletions

View File

@@ -265,5 +265,19 @@ main (int argc, char **argv)
}
}
fputs ("Test 9:\n", stdout);
{
/* From PR libc/1313 reported by Ben Caradoc-Davies <bmcd@physics.otago.ac.nz>. */
float value;
int res;
res = sscanf ("0123", "%2f", &value);
if (res != 1 || value != 1.0)
{
fputs ("test failed!\n", stdout);
result = 1;
}
}
exit (result);
}