1 /* PR middle-end/79448 - unhelpful -Wformat-truncation=2 warning
2 Verify that there's no warning with optimization.
4 { dg-options "-O2 -Wall -Wformat -Wformat-truncation=2" } */
6 typedef __SIZE_TYPE__
size_t;
9 snprintf (char*, size_t, const char*, ...);
15 fill (char *buf
, size_t len
, int count
)
17 if (snprintf (buf
, len
, "%s: %d", gettext ("count"), count
) >= len
) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." */