libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / qual-return-7.c
blob96f7f16305d46d3116e83e2498d731205578d3f8
1 /* Same as qual-return-3.c but with nested functions.
2 { dg-do compile }
3 { dg-options "-std=gnu99" } */
5 void test_local (void)
7 auto int foo (); /* { dg-message "note: previous declaration" "different qualifiers" } */
9 const int foo () { return 0; } /* { dg-error "conflicting types" "different qualifiers" } */
11 auto void bar (void);
12 volatile void bar () { } /* { dg-warning "qualified|volatile" "different qualifiers" } */
14 auto volatile void baz (void);
15 void baz () { } /* { dg-warning "not compatible" "different qualifiers" } */
18 /* { dg-prune-output "nested function 'foo' declared but never defined" } */