]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix up fixed-point/bitint-1.c test
authorJakub Jelinek <jakub@redhat.com>
Fri, 5 Sep 2025 09:52:13 +0000 (11:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 5 Sep 2025 09:52:13 +0000 (11:52 +0200)
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  <jakub@redhat.com>

* 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

index 49e5b5cd2d59209c53210a5e479dc07d378c96bc..d87c125f4d65e43a926cfde59459585e77680644 100644 (file)
@@ -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" } */
 }