PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[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" } */