2000-10-31 Philip Blundell <philb@gnu.org>
[binutils.git] / binutils / testsuite / binutils-all / testprog.c
blobc2b1856dedd038152490081bfadc129d44c0a054
1 /* This program is used to test objcopy and strip. */
3 #include <stdio.h>
5 int common;
6 int global = 1;
7 static int local = 2;
8 static char string[] = "string";
10 int
11 fn ()
13 return 3;
16 int
17 main ()
19 if (common != 0
20 || global != 1
21 || local != 2
22 || strcmp (string, "string") != 0)
24 printf ("failed\n");
25 exit (1);
28 printf ("ok\n");
29 exit (0);