aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104506-3.c
blob: b14deb5cf25f195af3004a1168006d31569bda9a (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* PR c/104506: we used to ICE after the error of
   changing the type.  */
double x;
/* { dg-message "note: previous declaration" "previous declaration" { target *-*-* } .-1 } */
void
foo (void)
{
  x;
}
int x; /* { dg-error "conflicting types" } */