summaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/testprog.c
blob: 210656b44877c2b7fa408a978ff25d78fd1622a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This program is used to test objcopy and strip.  */

int common;
int global = 1;
static int local = 2;
static char string[] = "string";

int
fn ()
{
  return 3;
}

int
main ()
{
  if (common != 0
      || global != 1
      || local != 2
      || strcmp (string, "string") != 0)
    {
      printf ("failed\n");
      exit (1);
    }

  printf ("ok\n");
  exit (0);
}