aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/pr19704a.c
blob: aa52e0011d2c8c9e40ac4ad924a0186250a03b7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

extern int __attribute__ ((weak)) fun (void);

int
main (void)
{
  if (&fun != 0)
    fun ();
  else
    printf ("Weak undefined\n");
  return 0;
}