Debian Codegraph @

gcc/testsuite/g++.target/s390/pr102024-4.C

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