summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/funcptr-1.c
blob: 79687c9c0052d40068dd8be40fdce2ecfda9bdbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extern int (*gp)(const char*);

int
g (const char* d)
{
  printf ("g");
  return 0;
}

f ()
{
  int errcnt=0;

  if (gp != g)
    {
      printf ("f");
      errcnt++;
    }
}