1 /* PR tree-optimization/84228 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wstringop-truncation -O2 -g" } */
5 char *strncpy (char *, const char *, __SIZE_TYPE__
);
12 foo (struct S
*p1
, const char *a
)
14 int b
= 5, c
= 6, d
= 7;
17 strncpy (p1
->arr
, a
, sizeof p1
->arr
); /* { dg-bogus "specified bound" } */