binutils-gdb/ld/testsuite/ld-x86-64/pr19704a.c

14 lines
168 B
C

#include <stdio.h>
extern int __attribute__ ((weak)) fun (void);
int
main (void)
{
if (&fun != 0)
fun ();
else
printf ("Weak undefined\n");
return 0;
}