// PR target/102024
// { dg-do compile }
struct S { float a; int : 0; };
void foo (struct S x);
void
bar (void)
{
struct S s = { 0.0f };
foo (s); // { dg-message "with zero-width bit fields members changed in GCC 12" }
}
// PR target/102024
// { dg-do compile }
struct S { float a; int : 0; };
void foo (struct S x);
void
bar (void)
{
struct S s = { 0.0f };
foo (s); // { dg-message "with zero-width bit fields members changed in GCC 12" }
}