Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/qual-return-6.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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" } */ |