Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/testsuite/ld-i386/plt-main4.c
2023-03-06 14:48:14 +01:00

14 lines
236 B
C

extern int foo(void);
typedef int (*func_p) (void);
extern func_p foo_ptr;
void
check_foo (void)
{
if (foo_ptr != foo)
__builtin_abort ();
if (foo_ptr() != 1)
__builtin_abort ();
if (foo() != 1)
__builtin_abort ();
}