From 4c08331595c96a938e4ea2520da5ccf0771ab125 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 5 Sep 2025 11:52:13 +0200 Subject: testsuite: Fix up fixed-point/bitint-1.c test This test was written without _BitInt support on any target with fixed-point support as well, so was actually never tested. Now that it can be tested on loongarch64-linux, there is a missing expected error, so this patch adds it. 2025-09-05 Jakub Jelinek * gcc.dg/fixed-point/bitint-1.c: Expect also error about _Sat used without _Fract/_Accum. --- gcc/testsuite/gcc.dg/fixed-point/bitint-1.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') diff --git a/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c b/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c index 49e5b5c..d87c125 100644 --- a/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c +++ b/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c @@ -6,5 +6,6 @@ void foo (void) { _Sat _BitInt (42) a; /* { dg-error "both '_Sat' and '_BitInt' in declaration specifiers" } */ + /* { dg-error "'_Sat' is used without '_Fract' or '_Accum'" "" { target *-*-* } .-1 } */ _BitInt (42) _Sat b; /* { dg-error "both '_Sat' and '_BitInt' in declaration specifiers" } */ } -- cgit v1.1