mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
* stdio-common/bug26.c (main): Correct fscanf template.
Fixup for commit 6ecec3b616
.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2013-05-26 Thomas Schwinge <thomas@codesourcery.com>
|
2013-05-26 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* stdio-common/bug26.c (main): Correct fscanf template.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
|
* sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
|
||||||
declare _dl_skip_args.
|
declare _dl_skip_args.
|
||||||
|
|
||||||
|
@ -28,8 +28,9 @@ main (void)
|
|||||||
char s[] = "+.e";
|
char s[] = "+.e";
|
||||||
|
|
||||||
f = fmemopen (s, strlen (s), "r");
|
f = fmemopen (s, strlen (s), "r");
|
||||||
/* This should fail to parse a float and leave 'e' in the input. */
|
/* This should fail to parse a floating-point number, and leave 'e' in the
|
||||||
lost |= (fscanf (f, "%f", &d) != 0);
|
input. */
|
||||||
|
lost |= (fscanf (f, "%lf", &d) != 0);
|
||||||
c = fgetc (f);
|
c = fgetc (f);
|
||||||
lost |= c != 'e';
|
lost |= c != 'e';
|
||||||
puts (lost ? "Test FAILED!" : "Test succeeded.");
|
puts (lost ? "Test FAILED!" : "Test succeeded.");
|
||||||
|
Reference in New Issue
Block a user