* dlltool.c: Include <assert.h>.
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
CommitLineData
3f7de0e7 1/* This program is used to test objcopy, readelf and strip. */
252b5132 2
3f7de0e7 3extern int strcmp (char *, const char *);
0691c3ca 4
252b5132
RH
5int common;
6int global = 1;
7static int local = 2;
3f7de0e7 8static unsigned char string[] = "string";
252b5132
RH
9
10int
11fn ()
12{
13 return 3;
14}
15
16int
17main ()
18{
19 if (common != 0
20 || global != 1
21 || local != 2
22 || strcmp (string, "string") != 0)
23 {
24 printf ("failed\n");
9a580d9a 25 return (1);
252b5132
RH
26 }
27
28 printf ("ok\n");
9a580d9a 29 return (0);
252b5132 30}
This page took 0.235393 seconds and 4 git commands to generate.