aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr22842a.c
blob: 52489bba2f95eaa237959c14fdcf5b65d1041d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>
#include <stdlib.h>

void
test (void)
{
  static int count;
  if (count)
    printf("PASS\n");
  count++;
}

void
foo (void (*bar) (void))
{
  if (bar != test)
    abort ();
  bar ();
  test ();
}