Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / qual-return-3.c
blob7a92046da815c78427a83db998cf5e244d297db5
1 /* Test for warnings for qualified function return types. Bug 15052
2 from Olatunji Ruwase (tjruwase at stanfordalumni.org): qualifiers
3 should not be lost when merging declarations. */
5 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
6 /* { dg-do compile } */
7 /* { dg-options "" } */
9 int foo (); /* { dg-error "previous declaration" "different qualifiers" } */
10 const int foo () { return 0; } /* { dg-error "conflicting types" "different qualifiers" } */
12 void bar (void);
13 volatile void bar () { } /* { dg-warning "qualified|volatile" "different qualifiers" } */
15 volatile void baz (void);
16 void baz () { } /* { dg-warning "not compatible" "different qualifiers" } */