2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr18809-1.c
blob3b6e8cc1852de09a8310ee78c81c66f989b3f837
1 /* PR c/18809 */
2 /* Origin: Andrew Pinski <pinskia@gcc.gnu.org> */
4 /* { dg-do compile } */
6 void foo(enum E e) {} /* { dg-error "forward ref" "forward" } */
7 /* { dg-warning "declared" "declared" { target *-*-* } 6 } */
8 /* { dg-warning "scope" "scope" { target *-*-* } 6 } */
9 /* { dg-error "incomplete" "incomplete" { target *-*-* } 6 } */
10 void bar() { foo(0); }