2 /* { dg-options "-std=c2y -O2" } */
4 struct f
{ _Alignas(int) char buf
[sizeof(int)]; };
5 struct f2
{ struct f x
; };
6 union g
{ _Alignas(int) char buf
[sizeof(int)]; };
9 int foo(struct f
*p
, int *q
)
17 int foo2(struct f2
*p
, int *q
)
25 int bar(union g
*p
, int *q
)
36 if (0 != foo(&p
, (void*)&p
.buf
))
40 if (0 != foo2(&p2
, (void*)&p2
.x
.buf
))
44 if (0 != bar(&q
, (void*)&q
.buf
))