]>
Commit | Line | Data |
---|---|---|
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 | ||
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" } */ |