(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr104506-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-std=gnu11" } */
       3  /* PR c/104506: we used to ICE after the error of
       4     changing the type.  */
       5  void
       6  foo (double x)
       7  /* { dg-message "note: previous definition" "previous definition" { target *-*-* } .-1 } */
       8  {
       9    x;
      10    int x; /* { dg-error "redeclared as different kind of symbol" } */
      11  }