aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/pr19579a.c
blob: 69d0f35898d8cc398fce90dfe8c83c641c5117e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int foo[1];
int bar[2];

extern int *foo_p (void);
extern int *bar_p (void);

int
main ()
{
  if (foo[0] == 0 && foo == foo_p () && bar[0] == -1 && bar == bar_p ())
    printf ("PASS\n");
  return 0;
}