* elf32-spu.c (build_stub): Fix malloc under-allocation.
[binutils.git] / ld / testsuite / ld-pie / weakundef.c
blobc206781a4fb53cd1eb3ab1596308443d48f4db9b
1 #include <stdio.h>
3 #pragma weak undef_func
5 extern int undef_func (void);
6 int (*ptr_to_func)(void) = undef_func;
8 int
9 main (void)
11 if (ptr_to_func == NULL)
12 printf ("PASSED\n");
14 return 0;