Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / qual-return-6.c
blob5b3ded0696aaaebb55b4ead62c3fbeb224fd3f90
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" } */
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" } */