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

r15-5327-g55e3bd376b2214 changes the default to -std=gnu23 but this
test relies on unprototyped functions. Follow Joseph's advice
in that commit and tweak the test accordingly.

gcc/testsuite/ChangeLog:

	* gcc.target/i386/pr66891.c: Pass -std=gnu17.
This commit is contained in:
Sam James 2024-11-16 03:14:19 +00:00
parent 714f7d8e3a
commit 6aabe3adef
No known key found for this signature in database
GPG key ID: 738409F520DF9190

View file

@ -1,5 +1,5 @@
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -std=gnu17" } */
__attribute__((__stdcall__)) void fn1();