gcc/testsuite/g++.target/s390/pr102024-2.C
raw| 1 | // PR target/102024 |
| 2 | // { dg-do compile } |
| 3 | |
| 4 | /* struct would never be passed in an FPR so no warning expected. */ |
| 5 | |
| 6 | struct S { float a; int :0; float b; }; |
| 7 | void foo (struct S x); |
| 8 | |
| 9 | void |
| 10 | bar (void) |
| 11 | { |
| 12 | struct S s = { 0.0f }; |
| 13 | foo (s); // { dg-bogus "with zero-width bit fields members changed in GCC 12" } |
| 14 | } |