1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* { dg-do compile } */ struct T; struct S { void (*bar)(struct S); }; void bar(struct T t) {} /* { dg-error "" } */ void foo(struct S *s) { s->bar = bar; }