summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/struct-in-proto-1.c
blob: 162ba914aa93144bc919d4ca66fdf989169c2586 (plain)
1
2
3
4
5
6
7
8
/* { 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" } */
}