aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/weakdef1.c
blob: 82642bb1be8349d6dbe468541f30c269199c9ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}