diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-09-05 11:52:13 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-09-05 11:52:13 +0200 |
commit | 4c08331595c96a938e4ea2520da5ccf0771ab125 (patch) | |
tree | 298234e82fa533107bf11421eea5eb5b815808f0 /gcc | |
parent | 99e76f7ef469f7b36fc799c5b312bb1364196cc1 (diff) | |
download | gcc-4c08331595c96a938e4ea2520da5ccf0771ab125.zip gcc-4c08331595c96a938e4ea2520da5ccf0771ab125.tar.gz gcc-4c08331595c96a938e4ea2520da5ccf0771ab125.tar.bz2 |
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 <jakub@redhat.com>
* gcc.dg/fixed-point/bitint-1.c: Expect also error about _Sat used
without _Fract/_Accum.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/fixed-point/bitint-1.c | 1 |
1 files changed, 1 insertions, 0 deletions
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" } */ } |