aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/redecl-26.c
blob: 5f8889c4c396d1b71fd4f44fe5c8f6e0c8ae0258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* We used to ICE while folding memcpy and memmove.
   PR c/109619. */
/* { dg-do compile } */
/* { dg-options "" } */

int *a1, *a2;

void foo(__SIZE_TYPE__ a3) /* { dg-note "" }  */
{
  __builtin_memcpy(a1, a2, a3);
  __builtin_memmove(a1, a2, a3);
  int *a3; /* { dg-error "redeclared as different kind of symbol" } */
}