blob: 162ba914aa93144bc919d4ca66fdf989169c2586 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-w" } */
int foo(struct S { int i; } s) {
return sizeof(struct S); /* { dg-bogus "incomplete type" "S visible here" } */
}
int bar(void) {
return sizeof(struct S); /* { dg-error "incomplete type" "not here" } */
}