]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/qual-return-6.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / qual-return-6.c
CommitLineData
aa4b467b
JM
1/* Test qualifiers on function return types after DR#423: those
2 qualifiers are now ignored for all purposes (except that _Atomic
3 still affects the type), but should still get warnings. */
4/* { dg-do compile } */
5/* { dg-options "-std=c11 -Wignored-qualifiers" } */
6
7const int f1 (void); /* { dg-warning "qualifiers ignored" } */
8volatile int f2 (void) { return 0; } /* { dg-warning "qualifiers ignored" } */
9const volatile void f3 (void) { } /* { dg-warning "qualifiers ignored" } */
10const 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" } */