blob: 51514c3fcf5e9fc9f27cf55af6623ea0710e2f96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// PR target/102024
// { dg-do compile }
/* struct S would not be passed as single value anyway so no warning expected. */
struct T { float a; float b; };
struct S { struct T t; int :0; };
void foo (struct S x);
void
bar (void)
{
struct S s = { { 0.0f, 0.0f } };
foo (s); // { dg-bogus "with zero-width bit fields members changed in GCC 12" }
}
|