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

26 lines
222 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
#include <stdio.h>
typedef void (*func_t) (void);
extern func_t get_foo (void);
void
foo (void)
{
}
int
main ()
{
func_t p;
foo ();
p = get_foo ();
p ();
if (foo == p)
printf ("PASS\n");
return 0;
}