old-cross-binutils/ld/testsuite/ld-pie/weakundef-data.c
H.J. Lu 7dd61ce72a 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
* ld-pie/weakundef-data.c: Fix the typo.
2006-02-23 22:23:26 +00:00

15 lines
186 B
C

#include <stdio.h>
#pragma weak undef_data
extern int undef_data;
int *ptr_to_data = &undef_data;
int
main (void)
{
if (ptr_to_data == NULL)
printf ("PASSED\n");
return 0;
}