Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / qual-return-8.c
blobde1e7cb7b64d830f85824a38206ee73fec48c3b7
1 /* Same as qual-return-7.c but in C11 mode.
2 { dg-do compile }
3 { dg-options "-std=gnu11" } */
5 void test_local (void)
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
15 auto int fi_ci ();
16 const int fi_ci () { return 0; }
18 auto enum E fe_ce ();
20 enum E { e };
21 const enum E fe_ce () { return 0; }
23 auto void fv_vv (void);
24 volatile void fv_vv () { }
26 auto volatile void fvv_v (void);
27 void fvv_v () { }