mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 03:03:31 +08:00
a47edf2745
* ld-elf/data2.c: New file. * ld-elf/weakdef1.c: Likewise. * ld-elf/shared.exp: Add tests for libdata2 and weakdef1.
16 lines
187 B
C
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;
|
|
}
|