]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Another fixup for fixed-point/bitint-1.c test
authorXi Ruoyao <xry111@xry111.site>
Mon, 8 Sep 2025 13:46:56 +0000 (21:46 +0800)
committerXi Ruoyao <xry111@xry111.site>
Mon, 8 Sep 2025 14:03:04 +0000 (22:03 +0800)
Besides r16-3595, there's another bug in this test: with -std=c23 the
token _Sat isn't recognized as a keyword at all, thus an error massage
different from the expected will be outputted.

Fix it by using -std=gnu23 instead.

gcc/testsuite:

* gcc.dg/fixed-point/bitint-1.c (dg-options): Use -std=gnu23
instead of -std=c23.

gcc/testsuite/gcc.dg/fixed-point/bitint-1.c

index d87c125f4d65e43a926cfde59459585e77680644..dc843ff5b6b70bafd8d413a982407931c461908b 100644 (file)
@@ -1,6 +1,6 @@
 /* PR c/102989 */
 /* { dg-do compile { target bitint } } */
-/* { dg-options "-std=c23" } */
+/* { dg-options "-std=gnu23" } */
 
 void
 foo (void)