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
declare _dl_skip_args.
char s[] = "+.e";
f = fmemopen (s, strlen (s), "r");
- /* This should fail to parse a float and leave 'e' in the input. */
- lost |= (fscanf (f, "%f", &d) != 0);
+ /* This should fail to parse a floating-point number, and leave 'e' in the
+ input. */
+ lost |= (fscanf (f, "%lf", &d) != 0);
c = fgetc (f);
lost |= c != 'e';
puts (lost ? "Test FAILED!" : "Test succeeded.");