]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tree-ssa/pr79448.c
1 /* PR middle-end/79448 - unhelpful -Wformat-truncation=2 warning
2 Verify that there's no warning without optimization.
4 { dg-options "-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." } */