Hi! 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. Tested with a cross to loongarch64-linux, bootstrapped/regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2025-09-05 Jakub Jelinek <[email protected]> * 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.jj 2023-11-09 09:04:19.666528529 +0100 +++ gcc/testsuite/gcc.dg/fixed-point/bitint-1.c 2025-09-04 10:56:33.567105733 +0200 @@ -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" } */ } Jakub
