summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr46360.c
blob: 1a5239bc1a1b10bd9f1b7f3fcc552c14704af1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR middle-end/46360 */

__attribute__((gnu_inline, always_inline)) extern inline char *
strncpy (char *dest, const char *src, __SIZE_TYPE__ len)
{
  return __builtin_strncpy (dest, src, len);
}

void
foo (char *s)
{
  strncpy (s, "", 0);
}