aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-size/size-10a.c
blob: 47e6a2fc50933d3627757b2f892d53a07777c2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

extern int bar_size;
extern char *get_bar (int, int);

int
main ()
{
  char *bar = get_bar (2, 20);
  if (bar_size == 10 && bar[2] == 20)
    printf ("OK\n");

  return 0;
}