Retro68/binutils/ld/testsuite/ld-pie/weakundef-data.c
2012-03-26 21:18:29 +02:00

16 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;
}