Add Intel MCU support to bfd
[deliverable/binutils-gdb.git] / binutils / testsuite / binutils-all / testprog.c
... / ...
CommitLineData
1/* This program is used to test objcopy, readelf and strip. */
2
3extern int strcmp (char *, const char *);
4extern int printf (const char *, ...);
5
6int common;
7int global = 1;
8static int local = 2;
9static char string[] = "string";
10
11int
12fn (void)
13{
14 return 3;
15}
16
17int
18main (void)
19{
20 if (common != 0
21 || global != 1
22 || local != 2
23 || strcmp (string, "string") != 0)
24 {
25 printf ("failed\n");
26 return 1;
27 }
28
29 printf ("ok\n");
30 return 0;
31}
This page took 0.026364 seconds and 4 git commands to generate.