blob: 89b26f86038baa6d686664f95f31fd2e2ee1f848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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" }
}
|