rt_gccstream/gcc/testsuite/gcc.dg/pr43211.c

16 lines
167 B
C

/* { 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;
}