testsuite: graphite: adapt to -std=gnu23 default change

r15-5327-g55e3bd376b2214 changes the default to -std=gnu23 but these
tests now trigger -Wold-style-definition. Follow Joseph's advice
in that commit and tweak the tests accordingly.

gcc/testsuite/ChangeLog:

	* gcc.dg/graphite/id-15.c: Pass -Wno-old-style-definition.
	* gcc.dg/graphite/pr38413.c: Ditto.
	* gcc.dg/graphite/pr38510.c: Ditto.
This commit is contained in:
Sam James 2024-11-16 03:12:33 +00:00
parent e77fd9aa89
commit 714f7d8e3a
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
3 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
/* { dg-additional-options "-Wno-old-style-definition" } */
/* { dg-require-effective-target int32plus } */
typedef long unsigned int size_t;

View File

@ -1,4 +1,4 @@
/* { dg-options "-O2 -fgraphite-identity" } */
/* { dg-options "-O2 -fgraphite-identity -Wno-old-style-definition" } */
static int qsz;

View File

@ -1,4 +1,4 @@
/* { dg-options "-O2 -fgraphite-identity" } */
/* { dg-options "-O2 -fgraphite-identity -Wno-old-style-definition" } */
typedef long int integer;
typedef double doublereal;