]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/testsuite/binutils-all/testprog.c
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
CommitLineData
3f7de0e7 1/* This program is used to test objcopy, readelf and strip. */
252b5132 2
84865015 3extern int strcmp (const char *, const char *);
c9bc3b3d 4extern int printf (const char *, ...);
0691c3ca 5
252b5132
RH
6int common;
7int global = 1;
8static int local = 2;
84865015 9static const char string[] = "string";
252b5132
RH
10
11int
c9bc3b3d 12fn (void)
252b5132
RH
13{
14 return 3;
15}
16
17int
c9bc3b3d 18main (void)
252b5132
RH
19{
20 if (common != 0
21 || global != 1
22 || local != 2
23 || strcmp (string, "string") != 0)
24 {
25 printf ("failed\n");
c9bc3b3d 26 return 1;
252b5132
RH
27 }
28
29 printf ("ok\n");
c9bc3b3d 30 return 0;
252b5132 31}