Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-elfweak/main.c
2023-03-06 14:48:14 +01:00

19 lines
165 B
C

#include <stdio.h>
#pragma weak foo
extern void foo ();
extern void foobar ();
void
foo ()
{
printf ("weak foo\n");
}
int
main ()
{
foobar ();
return 0;
}