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); }