Set OSABI field back to 0 (SysV), to avoid interoperability problems
[nacl-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;