blob: 89b26f86038baa6d686664f95f31fd2e2ee1f848 [file] [log] [blame]
// PR target/102024
// { dg-do compile }
// { dg-options "-mabi=64 -mhard-float" }
// { dg-final { scan-assembler "\\\$f12" } }
struct foo
{
char empty[0];
double a;
};
extern void func(struct foo);
void
pass_foo(void)
{
struct foo test;
test.a = 114;
func(test); // { dg-message "the ABI for passing a value containing zero-width fields before an adjacent 64-bit floating-point field was changed in GCC 12.1" }
}