Commit | Line | Data |
---|---|---|
3f7de0e7 | 1 | /* This program is used to test objcopy, readelf and strip. */ |
252b5132 | 2 | |
3f7de0e7 | 3 | extern int strcmp (char *, const char *); |
0691c3ca | 4 | |
252b5132 RH |
5 | int common; |
6 | int global = 1; | |
7 | static int local = 2; | |
3f7de0e7 | 8 | static unsigned char string[] = "string"; |
252b5132 RH |
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"); | |
9a580d9a | 25 | return (1); |
252b5132 RH |
26 | } |
27 | ||
28 | printf ("ok\n"); | |
9a580d9a | 29 | return (0); |
252b5132 | 30 | } |