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" } */