mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Update.
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user