Retro68/binutils/ld/testsuite/ld-x86-64/pr22842a.c
2018-12-28 16:25:28 +01:00

21 lines
216 B
C

#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 ();
}