OLD | NEW |
1 static int filelocal = 1; /* In Data section */ | 1 static int filelocal = 1; /* In Data section */ |
2 static int filelocal_bss; /* In BSS section */ | 2 static int filelocal_bss; /* In BSS section */ |
3 #ifndef __STDC__ | 3 #ifndef __STDC__ |
4 #define const /**/ | 4 #define const /**/ |
5 #endif | 5 #endif |
6 static const int filelocal_ro = 201; /* In Read-Only Data section */ | 6 static const int filelocal_ro = 201; /* In Read-Only Data section */ |
7 | 7 |
8 extern void init1(); | 8 extern void init1(); |
9 extern void foo(); | 9 extern void foo(); |
10 | 10 |
11 int autovars (int bcd, int abc); | 11 int autovars (int bcd, int abc); |
12 int localscopes (int x); | 12 int localscopes (int x); |
13 int useit (int val); | 13 int useit (int val); |
14 int useitp (const int *val); | 14 int useitp (const int *val); |
15 void init0(); | 15 void init0(); |
16 void marker1 (); | 16 void marker1 (); |
17 void marker2 (); | 17 void marker2 (); |
18 void marker3 (); | 18 void marker3 (); |
19 void marker4 (); | 19 void marker4 (); |
20 | 20 |
21 int main () | 21 int main () |
22 { | 22 { |
23 #ifdef usestubs | |
24 set_debug_traps(); | |
25 breakpoint(); | |
26 #endif | |
27 init0 (); | 23 init0 (); |
28 foo (); | 24 foo (); |
29 autovars (5, 6); | 25 autovars (5, 6); |
30 localscopes (0); | 26 localscopes (0); |
31 } | 27 } |
32 | 28 |
33 /* On some systems, such as AIX, unreferenced variables are deleted | 29 /* On some systems, such as AIX, unreferenced variables are deleted |
34 from the executable. On other compilers, such as ARM RealView, | 30 from the executable. On other compilers, such as ARM RealView, |
35 const variables without their address taken are deleted. */ | 31 const variables without their address taken are deleted. */ |
36 void usestatics () | 32 void usestatics () |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 211 } |
216 } | 212 } |
217 } | 213 } |
218 return retval; | 214 return retval; |
219 } | 215 } |
220 | 216 |
221 void marker1 () {} | 217 void marker1 () {} |
222 void marker2 () {} | 218 void marker2 () {} |
223 void marker3 () {} | 219 void marker3 () {} |
224 void marker4 () {} | 220 void marker4 () {} |
OLD | NEW |