| 1 |
/* Same as qual-return-7.c but in C11 mode. |
| 2 |
{ dg-do compile } |
| 3 |
{ dg-options "-std=gnu11" } */ |
| 4 |
|
| 5 |
void test_local (void) |
| 6 |
{ |
| 7 |
#if 0 |
| 8 |
/* _Atomic is not considered a qualifier and so is not ignored |
| 9 |
on a return type. As a result, the redeclaration below isn't |
| 10 |
valid. See also qual-return-5.c. */ |
| 11 |
auto int fi_ai (); |
| 12 |
_Atomic int fi_ai () { return 0; } |
| 13 |
#endif |
| 14 |
|
| 15 |
auto int fi_ci (); |
| 16 |
const int fi_ci () { return 0; } |
| 17 |
|
| 18 |
auto enum E fe_ce (); |
| 19 |
|
| 20 |
enum E { e }; |
| 21 |
const enum E fe_ce () { return 0; } |
| 22 |
|
| 23 |
auto void fv_vv (void); |
| 24 |
volatile void fv_vv () { } |
| 25 |
|
| 26 |
auto volatile void fvv_v (void); |
| 27 |
void fvv_v () { } |
| 28 |
} |