binutils-gdb/ld/testsuite/ld-elf/weakdef1.c
H.J. Lu a47edf2745 Add a test for weak alias
* ld-elf/data2.c: New file.
	* ld-elf/weakdef1.c: Likewise.

	* ld-elf/shared.exp: Add tests for libdata2 and weakdef1.
2012-07-02 14:40:19 +00:00

16 lines
187 B
C

#include <stdio.h>
#include <stdlib.h>
extern int foo_alias;
extern void bar (void);
int
main (void)
{
bar ();
if (foo_alias != -1)
abort ();
printf ("PASS\n");
return 0;
}