mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
bc9ad2e430
PR ld/14323 * ld-elf/pr14323-1.c: New. * ld-elf/pr14323-2.c: Likewise. * ld-elf/shared.exp (build_tests): Add libpr14323-2.so. (run_tests): Add pr14323.
18 lines
216 B
C
18 lines
216 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
extern int foo_alias;
|
|
extern char *bar ();
|
|
|
|
int
|
|
main ()
|
|
{
|
|
if (foo_alias != 0)
|
|
abort ();
|
|
bar ();
|
|
if (foo_alias != -1)
|
|
abort ();
|
|
printf ("PASS\n");
|
|
return 0;
|
|
}
|