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