daily update
[binutils.git] / binutils / testsuite / binutils-all / testprog.c
blob57de4610a60237b687a2a2470f0b30199c2658df
1 /* This program is used to test objcopy and strip. */
3 #include <stdio.h>
4 #include <string.h>
6 int common;
7 int global = 1;
8 static int local = 2;
9 static char string[] = "string";
11 int
12 fn ()
14 return 3;
17 int
18 main ()
20 if (common != 0
21 || global != 1
22 || local != 2
23 || strcmp (string, "string") != 0)
25 printf ("failed\n");
26 return (1);
29 printf ("ok\n");
30 return (0);