aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c
blob: fa6299960e77141ce747552cfbe3256a7a96d229 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-options "-mgeneral-regs-only -O2" } */

extern void abort (void);

int
test (int i, ...)
{
  float f = (float) i; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of floating-point types" } */
  if (f != f) abort ();
  return 2;
}