1 /* { dg-do compile } */ 2 /* { dg-options "-w" } */ foo(struct S{ int i; } s)3int foo(struct S { int i; } s) { 4 return sizeof(struct S); /* { dg-bogus "incomplete type" "S visible here" } */ 5 } bar(void)6int bar(void) { 7 return sizeof(struct S); /* { dg-error "incomplete type" "not here" } */ 8 } 9