libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / c23-tag-composite-2.c
blob0b06c573e87e9eb819345960eda692ebea1e8079
1 /* { dg-do compile } */
2 /* { dg-options "-std=c23" } */
5 struct foo { int (*(*i)(void))[]; } x;
8 void f(void)
9 {
10 const struct foo { int (*(*i)())[3]; } y;
11 _Static_assert(3 * sizeof(int) == sizeof(*((1 ? &x : &y)->i())), "");
14 void g(struct foo { int x; } a);
15 void g(const struct foo { int x; } a);