summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr43211.c
blob: 1549619ed16267c8859270e810135749d14ec87a (plain)
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;
}