Skip to content

Commit

Permalink
AArch64: Fix testcase
Browse files Browse the repository at this point in the history
Committed as trivial fix.

gcc/testsuite/
	* gcc.target/aarch64/mgeneral-regs_3.c: Fix testcase.
  • Loading branch information
Wilco1 authored and ouuleilei-bot committed Nov 4, 2022
1 parent 679be32 commit 2914e44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 2914e44

Please sign in to comment.