aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-pie/weakundef-data.c
blob: af411bccbfdb37e17e228f3701a7a6e3e63f388e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}