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

16 lines
276 B
C
Raw Normal View History

2023-03-06 14:48:14 +01:00
extern int bar(void);
typedef int (*func_p) (void);
extern func_p get_bar (void);
void
check_bar (void)
{
func_p bar_ptr = get_bar ();
if (bar_ptr != bar)
__builtin_abort ();
if (bar_ptr() != -1)
__builtin_abort ();
if (bar() != -1)
__builtin_abort ();
}