libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr104506-2.c
blob3c3aaaac4f830ae72945489fce55551b64d74eda
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 } */
9 x;
10 int x; /* { dg-error "redeclared as different kind of symbol" } */