blob: 0b06c573e87e9eb819345960eda692ebea1e8079 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-std=c23" } */
struct foo { int (*(*i)(void))[]; } x;
void f(void)
{
const struct foo { int (*(*i)())[3]; } y;
_Static_assert(3 * sizeof(int) == sizeof(*((1 ? &x : &y)->i())), "");
}
void g(struct foo { int x; } a);
void g(const struct foo { int x; } a);