18 /* GCC does not know the result of wcstof so cannot see that the
19 snprintf output is not truncated. */
20 DIAG_PUSH_NEEDS_COMMENT
;
21 #if __GNUC_PREREQ (7, 0)
22 DIAG_IGNORE_NEEDS_COMMENT (7.0, "-Wformat-truncation");
24 snprintf (buf
, 100, "%S = %f", tmp
, wcstof (tmp
, NULL
));
25 DIAG_POP_NEEDS_COMMENT
;
26 printf ("\"%s\" -> %s\n", buf
,
27 strcmp (buf
, "81 = 81.000000") == 0 ? "okay" : "buggy");
28 result
|= strcmp (buf
, "81 = 81.000000") != 0;
33 #include <support/test-driver.c>