https://gcc.gnu.org/g:4c08331595c96a938e4ea2520da5ccf0771ab125

commit r16-3595-g4c08331595c96a938e4ea2520da5ccf0771ab125
Author: Jakub Jelinek <[email protected]>
Date:   Fri Sep 5 11:52:13 2025 +0200

    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  <[email protected]>
    
            * gcc.dg/fixed-point/bitint-1.c: Expect also error about _Sat used
            without _Fract/_Accum.

Diff:
---
 gcc/testsuite/gcc.dg/fixed-point/bitint-1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c 
b/gcc/testsuite/gcc.dg/fixed-point/bitint-1.c
index 49e5b5cd2d59..d87c125f4d65 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" } */
 }

Reply via email to