Retro68/binutils/ld/testsuite/ld-elfweak/main.c

20 lines
165 B
C
Raw Normal View History

2012-03-26 19:18:29 +00:00
#include <stdio.h>
#pragma weak foo
extern void foo ();
extern void foobar ();
void
foo ()
{
printf ("weak foo\n");
}
int
main ()
{
foobar ();
return 0;
}