aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr102024-3.c
blob: 477f07055a111a4403ef59c26d108f131b529fee (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
{
  struct {} empty;
  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" }
}