gcc/testsuite/gcc.dg/redecl-26.c
raw| 1 | /* We used to ICE while folding memcpy and memmove. |
| 2 | PR c/109619. */ |
| 3 | /* { dg-do compile } */ |
| 4 | /* { dg-options "" } */ |
| 5 | |
| 6 | int *a1, *a2; |
| 7 | |
| 8 | void foo(__SIZE_TYPE__ a3) /* { dg-note "" } */ |
| 9 | { |
| 10 | __builtin_memcpy(a1, a2, a3); |
| 11 | __builtin_memmove(a1, a2, a3); |
| 12 | int *a3; /* { dg-error "redeclared as different kind of symbol" } */ |
| 13 | } |
| 14 |