summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr83463.c
blob: 9142d273e7cb66400b05f2c09a42b75fa39317e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR middle-end/83463 */
/* { dg-do compile } */
/* { dg-prune-output "conflicting types for built-in" } */
/* { dg-options "-O2 -Wrestrict -Wno-pointer-to-int-cast" } */

int *a;
void *memcpy ();
void
m (void *p1)
{
  memcpy (0, p1, 0);
}

void
p ()
{
  m (p + (long) a);
}

/* { dg-prune-output "\\\[-Wbuiltin-declaration-mismatch]" } */