1999-07-21 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
1 /* This program is used to test objcopy and strip. */
2
3 #include <stdio.h>
4
5 int common;
6 int global = 1;
7 static int local = 2;
8 static char string[] = "string";
9
10 int
11 fn ()
12 {
13 return 3;
14 }
15
16 int
17 main ()
18 {
19 if (common != 0
20 || global != 1
21 || local != 2
22 || strcmp (string, "string") != 0)
23 {
24 printf ("failed\n");
25 exit (1);
26 }
27
28 printf ("ok\n");
29 exit (0);
30 }
This page took 0.031039 seconds and 5 git commands to generate.