aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr105080.c
blob: 77ee7eeb396e3725a6c3b897f0fcdea88d082177 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O0 -Wall" } */

int main()
{
  char foo[3];
  int i;

  for (i = 0; i < 16; i++)
    __builtin_snprintf(foo, sizeof(foo), "%d", i);  /* { dg-bogus "truncated" } */
}