blob: 5b3ded0696aaaebb55b4ead62c3fbeb224fd3f90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* Test qualifiers on function return types after DR#423: those
qualifiers are now ignored for all purposes (except that _Atomic
still affects the type), but should still get warnings. */
/* { dg-do compile } */
/* { dg-options "-std=c11 -Wignored-qualifiers" } */
const int f1 (void); /* { dg-warning "qualifiers ignored" } */
volatile int f2 (void) { return 0; } /* { dg-warning "qualifiers ignored" } */
const volatile void f3 (void) { } /* { dg-warning "qualifiers ignored" } */
const void f4 (void); /* { dg-warning "qualifiers ignored" } */
_Atomic int f5 (void); /* { dg-warning "qualifiers ignored" } */
_Atomic int f6 (void) { return 0; } /* { dg-warning "qualifiers ignored" } */
|