2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr39084.c
blobff731492154bc4c47acda49ab09fb4ae0cb15688
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 struct color { int i; }; /* { dg-message "note: originally defined here" } */
5 static const struct color col;
6 struct color * f(void)
8 return (struct color *) &col;
11 struct color { int j; }; /* { dg-error "redefinition of" } */