AArch64: Fix testcase

gcc/testsuite/
	* gcc.target/aarch64/mgeneral-regs_3.c: Fix testcase.
This commit is contained in:
Wilco Dijkstra 2022-10-27 16:40:17 +01:00 committed by Wilco Dijkstra
parent 0386c40eeb
commit 26d2db895b

View file

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