1 /* Test qualifiers on function return types in C23 (C23 version of
2 qual-return-6.c): those qualifiers are now ignored for all purposes,
3 including _Atomic, but should still get warnings. */
4 /* { dg-do compile } */
5 /* { dg-options "-std=c23 -Wignored-qualifiers" } */
7 const int f1 (void); /* { dg-warning "qualifiers ignored" } */
8 volatile int f2 (void) { return 0; } /* { dg-warning "qualifiers ignored" } */
9 const volatile void f3 (void) { } /* { dg-warning "qualifiers ignored" } */
10 const void f4 (void); /* { dg-warning "qualifiers ignored" } */
11 _Atomic
int f5 (void); /* { dg-warning "qualifiers ignored" } */
12 _Atomic
int f6 (void) { return 0; } /* { dg-warning "qualifiers ignored" } */