Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / gpl3 / binutils / dist / 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;