Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pr104506-2.c

12 lines
324 B
C

/* { dg-do compile } */
/* { dg-options "-std=gnu11" } */
/* PR c/104506: we used to ICE after the error of
changing the type. */
void
foo (double x)
/* { dg-message "note: previous definition" "previous definition" { target *-*-* } .-1 } */
{
x;
int x; /* { dg-error "redeclared as different kind of symbol" } */
}