Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-x86-64/pr22842a.c

21 lines
216 B
C
Raw Permalink Normal View History

2023-03-06 14:48:14 +01:00
#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 ();
}