https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88036
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Slightly simpler testcase, that doesn't need the attribute to avoid the
-Wunused-variable warning:
int food = 0;
void* f()
{
undeclared_type fool;
return &fool;
}
