]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - binutils/testsuite/binutils-all/testprog.c
19990502 sourceware import
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
1 /* This program is used to test objcopy and strip. */
2
3 int common;
4 int global = 1;
5 static int local = 2;
6 static char string[] = "string";
7
8 int
9 fn ()
10 {
11 return 3;
12 }
13
14 int
15 main ()
16 {
17 if (common != 0
18 || global != 1
19 || local != 2
20 || strcmp (string, "string") != 0)
21 {
22 printf ("failed\n");
23 exit (1);
24 }
25
26 printf ("ok\n");
27 exit (0);
28 }