binutils-gdb/ld/testsuite/ld-elfweak/main.c
H.J. Lu 0c52a746f7 2001-09-14 H.J. Lu <hjl@gnu.org>
* ld-elfweak/bar.c: Updated.
	* ld-elfweak/bar1a.c: Likewise.
	* ld-elfweak/main.c: Likewise.
	* ld-elfweak/main1.c: Likewise.
	* ld-elfweak/elfweak.exp: Likewise.
	* ld-elfweak/weakdata.dsym: Updated.
2001-09-14 23:43:17 +00:00

20 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;
}