gcc/testsuite/g++.target/mips/pr102024.C
raw| 1 | // PR target/102024 |
| 2 | // { dg-do compile } |
| 3 | // { dg-options "-O2 -mabi=64 -mhard-float" } |
| 4 | // { dg-final { scan-assembler-not "\\\$f0" } } |
| 5 | |
| 6 | struct foo |
| 7 | { |
| 8 | double a; |
| 9 | int : 0; |
| 10 | double b; |
| 11 | }; |
| 12 | |
| 13 | struct foo |
| 14 | make_foo(void) // { dg-message "the ABI for returning a value containing zero-width bit-fields but otherwise an aggregate with only one or two floating-point fields was changed in GCC 12.1" } |
| 15 | { |
| 16 | struct foo ret; |
| 17 | ret.a = 114; |
| 18 | ret.b = 514; |
| 19 | return ret; |
| 20 | } |