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

extern char bar[];
extern char size_of_bar asm ("bar@SIZE");
extern void set_bar (int, int);

int
main ()
{
  set_bar (1, 20);
  if (10 == (long) &size_of_bar && bar[1] == 20)
    printf ("OK\n");

  return 0;
}