summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr18809-1.c
blob: 3b6e8cc1852de09a8310ee78c81c66f989b3f837 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/18809 */
/* Origin: Andrew Pinski <pinskia@gcc.gnu.org> */

/* { dg-do compile } */

void foo(enum E e) {}   /* { dg-error "forward ref" "forward" } */
			/* { dg-warning "declared" "declared" { target *-*-* } 6 } */
			/* { dg-warning "scope" "scope" { target *-*-* } 6 } */
			/* { dg-error "incomplete" "incomplete" { target *-*-* } 6 } */
void bar() { foo(0); }