2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr27953.c
blob99ae0a3aa839869fdfc3e3347464f73f9cbde778
1 /* PR c/27953 */
3 void foo(struct A a) {} /* { dg-line foo_first } */
4 /* { dg-warning "declared inside parameter list" "inside" { target *-*-* } .-1 } */
5 /* { dg-error "incomplete type" "incomplete" { target *-*-* } .-2 } */
7 void foo() {}
8 /* { dg-error "redefinition" "redef" { target *-*-* } .-1 } */
9 /* { dg-message "note: previous definition" "previous" { target *-*-* } foo_first } */