Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | /* This program is used to test objcopy and strip. */ |
2 | ||
0691c3ca | 3 | #include <stdio.h> |
9a580d9a | 4 | #include <string.h> |
0691c3ca | 5 | |
252b5132 RH |
6 | int common; |
7 | int global = 1; | |
8 | static int local = 2; | |
9 | static char string[] = "string"; | |
10 | ||
11 | int | |
12 | fn () | |
13 | { | |
14 | return 3; | |
15 | } | |
16 | ||
17 | int | |
18 | main () | |
19 | { | |
20 | if (common != 0 | |
21 | || global != 1 | |
22 | || local != 2 | |
23 | || strcmp (string, "string") != 0) | |
24 | { | |
25 | printf ("failed\n"); | |
9a580d9a | 26 | return (1); |
252b5132 RH |
27 | } |
28 | ||
29 | printf ("ok\n"); | |
9a580d9a | 30 | return (0); |
252b5132 | 31 | } |