From: Wilco Dijkstra Date: Thu, 27 Oct 2022 15:40:17 +0000 (+0100) Subject: AArch64: Fix testcase X-Git-Tag: basepoints/gcc-14~3517 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d2db895b05388fa215c43ee97a0aed3d45f3f8;p=thirdparty%2Fgcc.git AArch64: Fix testcase gcc/testsuite/ * gcc.target/aarch64/mgeneral-regs_3.c: Fix testcase. --- diff --git a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c index fa6299960e77..4e634f6ebe2b 100644 --- a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c +++ b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_3.c @@ -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; }