aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/main.c
blob: 9daaceb685c97baf135711e633259972e9213bda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>

#pragma weak foo

extern void foo ();

void
foo ()
{
  printf ("weak foo\n");
}

int
main ()
{
  foo ();
  return 0;
}