aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104506-1.c
blob: 5eb71911b71660f9473908fff9ccae6236da3836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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 } */
{
  (void)x;
  int x; /* { dg-error "redeclared as different kind of symbol" } */
}