summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr27953.c
blob: 245b59e0ba8710141a420885aa6b43e75f6e1f20 (plain)
1
2
3
4
5
6
7
8
/* PR c/27953 */

void foo(struct A a) {}  /* { dg-warning "declared inside parameter list" } */
/* { dg-warning "its scope is only" "" { target *-*-* } 3 } */
/* { dg-error "incomplete type" "" { target *-*-* } 3 } */

void foo() {}            /* { dg-error "redefinition" } */
/* { dg-message "note: previous definition" "" { target *-*-* } 3 } */