First public contribution.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\system\t_prot2a.cpp
20 LOCAL_D TInt TestData1=0xb504f334;
21 LOCAL_D TInt TestArray[128];
23 // put in loads of relocations to give loader something to do
24 LOCAL_C void DummyFunc0() {}
25 LOCAL_C void DummyFunc1() {}
26 LOCAL_C void DummyFunc2() {}
27 LOCAL_C void DummyFunc3() {}
28 LOCAL_C void DummyFunc4() {}
29 LOCAL_C void DummyFunc5() {}
30 LOCAL_C void DummyFunc6() {}
31 LOCAL_C void DummyFunc7() {}
32 LOCAL_C void DummyFunc8() {}
33 LOCAL_C void DummyFunc9() {}
34 LOCAL_C void DummyFunc10() {}
35 LOCAL_C void DummyFunc11() {}
36 LOCAL_C void DummyFunc12() {}
37 LOCAL_C void DummyFunc13() {}
38 LOCAL_C void DummyFunc14() {}
39 LOCAL_C void DummyFunc15() {}
40 LOCAL_C void DummyFunc16() {}
41 LOCAL_C void DummyFunc17() {}
42 LOCAL_C void DummyFunc18() {}
43 LOCAL_C void DummyFunc19() {}
44 LOCAL_C void DummyFunc20() {}
45 LOCAL_C void DummyFunc21() {}
46 LOCAL_C void DummyFunc22() {}
47 LOCAL_C void DummyFunc23() {}
48 LOCAL_C void DummyFunc24() {}
49 LOCAL_C void DummyFunc25() {}
50 LOCAL_C void DummyFunc26() {}
51 LOCAL_C void DummyFunc27() {}
52 LOCAL_C void DummyFunc28() {}
53 LOCAL_C void DummyFunc29() {}
54 LOCAL_C void DummyFunc30() {}
55 LOCAL_C void DummyFunc31() {}
56 LOCAL_C void DummyFunc32() {}
57 LOCAL_C void DummyFunc33() {}
58 LOCAL_C void DummyFunc34() {}
59 LOCAL_C void DummyFunc35() {}
60 LOCAL_C void DummyFunc36() {}
61 LOCAL_C void DummyFunc37() {}
62 LOCAL_C void DummyFunc38() {}
63 LOCAL_C void DummyFunc39() {}
64 LOCAL_C void DummyFunc40() {}
65 LOCAL_C void DummyFunc41() {}
66 LOCAL_C void DummyFunc42() {}
67 LOCAL_C void DummyFunc43() {}
68 LOCAL_C void DummyFunc44() {}
69 LOCAL_C void DummyFunc45() {}
70 LOCAL_C void DummyFunc46() {}
71 LOCAL_C void DummyFunc47() {}
72 LOCAL_C void DummyFunc48() {}
73 LOCAL_C void DummyFunc49() {}
74 LOCAL_C void DummyFunc50() {}
75 LOCAL_C void DummyFunc51() {}
76 LOCAL_C void DummyFunc52() {}
77 LOCAL_C void DummyFunc53() {}
78 LOCAL_C void DummyFunc54() {}
79 LOCAL_C void DummyFunc55() {}
80 LOCAL_C void DummyFunc56() {}
81 LOCAL_C void DummyFunc57() {}
82 LOCAL_C void DummyFunc58() {}
83 LOCAL_C void DummyFunc59() {}
84 LOCAL_C void DummyFunc60() {}
85 LOCAL_C void DummyFunc61() {}
86 LOCAL_C void DummyFunc62() {}
87 LOCAL_C void DummyFunc63() {}
88 LOCAL_C void DummyFunc64() {}
89 LOCAL_C void DummyFunc65() {}
90 LOCAL_C void DummyFunc66() {}
91 LOCAL_C void DummyFunc67() {}
92 LOCAL_C void DummyFunc68() {}
93 LOCAL_C void DummyFunc69() {}
94 LOCAL_C void DummyFunc70() {}
95 LOCAL_C void DummyFunc71() {}
96 LOCAL_C void DummyFunc72() {}
97 LOCAL_C void DummyFunc73() {}
98 LOCAL_C void DummyFunc74() {}
99 LOCAL_C void DummyFunc75() {}
100 LOCAL_C void DummyFunc76() {}
101 LOCAL_C void DummyFunc77() {}
102 LOCAL_C void DummyFunc78() {}
103 LOCAL_C void DummyFunc79() {}
104 LOCAL_C void DummyFunc80() {}
105 LOCAL_C void DummyFunc81() {}
106 LOCAL_C void DummyFunc82() {}
107 LOCAL_C void DummyFunc83() {}
108 LOCAL_C void DummyFunc84() {}
109 LOCAL_C void DummyFunc85() {}
110 LOCAL_C void DummyFunc86() {}
111 LOCAL_C void DummyFunc87() {}
112 LOCAL_C void DummyFunc88() {}
113 LOCAL_C void DummyFunc89() {}
114 LOCAL_C void DummyFunc90() {}
115 LOCAL_C void DummyFunc91() {}
116 LOCAL_C void DummyFunc92() {}
117 LOCAL_C void DummyFunc93() {}
118 LOCAL_C void DummyFunc94() {}
119 LOCAL_C void DummyFunc95() {}
120 LOCAL_C void DummyFunc96() {}
121 LOCAL_C void DummyFunc97() {}
122 LOCAL_C void DummyFunc98() {}
123 LOCAL_C void DummyFunc99() {}
124 LOCAL_C void DummyFunc100() {}
125 LOCAL_C void DummyFunc101() {}
126 LOCAL_C void DummyFunc102() {}
127 LOCAL_C void DummyFunc103() {}
128 LOCAL_C void DummyFunc104() {}
129 LOCAL_C void DummyFunc105() {}
130 LOCAL_C void DummyFunc106() {}
131 LOCAL_C void DummyFunc107() {}
132 LOCAL_C void DummyFunc108() {}
133 LOCAL_C void DummyFunc109() {}
134 LOCAL_C void DummyFunc110() {}
135 LOCAL_C void DummyFunc111() {}
136 LOCAL_C void DummyFunc112() {}
137 LOCAL_C void DummyFunc113() {}
138 LOCAL_C void DummyFunc114() {}
139 LOCAL_C void DummyFunc115() {}
140 LOCAL_C void DummyFunc116() {}
141 LOCAL_C void DummyFunc117() {}
142 LOCAL_C void DummyFunc118() {}
143 LOCAL_C void DummyFunc119() {}
144 LOCAL_C void DummyFunc120() {}
145 LOCAL_C void DummyFunc121() {}
146 LOCAL_C void DummyFunc122() {}
147 LOCAL_C void DummyFunc123() {}
148 LOCAL_C void DummyFunc124() {}
149 LOCAL_C void DummyFunc125() {}
150 LOCAL_C void DummyFunc126() {}
151 LOCAL_C void DummyFunc127() {}
152 LOCAL_C void DummyFunc128() {}
153 LOCAL_C void DummyFunc129() {}
154 LOCAL_C void DummyFunc130() {}
155 LOCAL_C void DummyFunc131() {}
156 LOCAL_C void DummyFunc132() {}
157 LOCAL_C void DummyFunc133() {}
158 LOCAL_C void DummyFunc134() {}
159 LOCAL_C void DummyFunc135() {}
160 LOCAL_C void DummyFunc136() {}
161 LOCAL_C void DummyFunc137() {}
162 LOCAL_C void DummyFunc138() {}
163 LOCAL_C void DummyFunc139() {}
164 LOCAL_C void DummyFunc140() {}
165 LOCAL_C void DummyFunc141() {}
166 LOCAL_C void DummyFunc142() {}
167 LOCAL_C void DummyFunc143() {}
168 LOCAL_C void DummyFunc144() {}
169 LOCAL_C void DummyFunc145() {}
170 LOCAL_C void DummyFunc146() {}
171 LOCAL_C void DummyFunc147() {}
172 LOCAL_C void DummyFunc148() {}
173 LOCAL_C void DummyFunc149() {}
174 LOCAL_C void DummyFunc150() {}
175 LOCAL_C void DummyFunc151() {}
176 LOCAL_C void DummyFunc152() {}
177 LOCAL_C void DummyFunc153() {}
178 LOCAL_C void DummyFunc154() {}
179 LOCAL_C void DummyFunc155() {}
180 LOCAL_C void DummyFunc156() {}
181 LOCAL_C void DummyFunc157() {}
182 LOCAL_C void DummyFunc158() {}
183 LOCAL_C void DummyFunc159() {}
184 LOCAL_C void DummyFunc160() {}
185 LOCAL_C void DummyFunc161() {}
186 LOCAL_C void DummyFunc162() {}
187 LOCAL_C void DummyFunc163() {}
188 LOCAL_C void DummyFunc164() {}
189 LOCAL_C void DummyFunc165() {}
190 LOCAL_C void DummyFunc166() {}
191 LOCAL_C void DummyFunc167() {}
192 LOCAL_C void DummyFunc168() {}
193 LOCAL_C void DummyFunc169() {}
194 LOCAL_C void DummyFunc170() {}
195 LOCAL_C void DummyFunc171() {}
196 LOCAL_C void DummyFunc172() {}
197 LOCAL_C void DummyFunc173() {}
198 LOCAL_C void DummyFunc174() {}
199 LOCAL_C void DummyFunc175() {}
200 LOCAL_C void DummyFunc176() {}
201 LOCAL_C void DummyFunc177() {}
202 LOCAL_C void DummyFunc178() {}
203 LOCAL_C void DummyFunc179() {}
204 LOCAL_C void DummyFunc180() {}
205 LOCAL_C void DummyFunc181() {}
206 LOCAL_C void DummyFunc182() {}
207 LOCAL_C void DummyFunc183() {}
208 LOCAL_C void DummyFunc184() {}
209 LOCAL_C void DummyFunc185() {}
210 LOCAL_C void DummyFunc186() {}
211 LOCAL_C void DummyFunc187() {}
212 LOCAL_C void DummyFunc188() {}
213 LOCAL_C void DummyFunc189() {}
214 LOCAL_C void DummyFunc190() {}
215 LOCAL_C void DummyFunc191() {}
216 LOCAL_C void DummyFunc192() {}
217 LOCAL_C void DummyFunc193() {}
218 LOCAL_C void DummyFunc194() {}
219 LOCAL_C void DummyFunc195() {}
220 LOCAL_C void DummyFunc196() {}
221 LOCAL_C void DummyFunc197() {}
222 LOCAL_C void DummyFunc198() {}
223 LOCAL_C void DummyFunc199() {}
224 LOCAL_C void DummyFunc200() {}
225 LOCAL_C void DummyFunc201() {}
226 LOCAL_C void DummyFunc202() {}
227 LOCAL_C void DummyFunc203() {}
228 LOCAL_C void DummyFunc204() {}
229 LOCAL_C void DummyFunc205() {}
230 LOCAL_C void DummyFunc206() {}
231 LOCAL_C void DummyFunc207() {}
232 LOCAL_C void DummyFunc208() {}
233 LOCAL_C void DummyFunc209() {}
234 LOCAL_C void DummyFunc210() {}
235 LOCAL_C void DummyFunc211() {}
236 LOCAL_C void DummyFunc212() {}
237 LOCAL_C void DummyFunc213() {}
238 LOCAL_C void DummyFunc214() {}
239 LOCAL_C void DummyFunc215() {}
240 LOCAL_C void DummyFunc216() {}
241 LOCAL_C void DummyFunc217() {}
242 LOCAL_C void DummyFunc218() {}
243 LOCAL_C void DummyFunc219() {}
244 LOCAL_C void DummyFunc220() {}
245 LOCAL_C void DummyFunc221() {}
246 LOCAL_C void DummyFunc222() {}
247 LOCAL_C void DummyFunc223() {}
248 LOCAL_C void DummyFunc224() {}
249 LOCAL_C void DummyFunc225() {}
250 LOCAL_C void DummyFunc226() {}
251 LOCAL_C void DummyFunc227() {}
252 LOCAL_C void DummyFunc228() {}
253 LOCAL_C void DummyFunc229() {}
254 LOCAL_C void DummyFunc230() {}
255 LOCAL_C void DummyFunc231() {}
256 LOCAL_C void DummyFunc232() {}
257 LOCAL_C void DummyFunc233() {}
258 LOCAL_C void DummyFunc234() {}
259 LOCAL_C void DummyFunc235() {}
260 LOCAL_C void DummyFunc236() {}
261 LOCAL_C void DummyFunc237() {}
262 LOCAL_C void DummyFunc238() {}
263 LOCAL_C void DummyFunc239() {}
264 LOCAL_C void DummyFunc240() {}
265 LOCAL_C void DummyFunc241() {}
266 LOCAL_C void DummyFunc242() {}
267 LOCAL_C void DummyFunc243() {}
268 LOCAL_C void DummyFunc244() {}
269 LOCAL_C void DummyFunc245() {}
270 LOCAL_C void DummyFunc246() {}
271 LOCAL_C void DummyFunc247() {}
272 LOCAL_C void DummyFunc248() {}
273 LOCAL_C void DummyFunc249() {}
274 LOCAL_C void DummyFunc250() {}
275 LOCAL_C void DummyFunc251() {}
276 LOCAL_C void DummyFunc252() {}
277 LOCAL_C void DummyFunc253() {}
278 LOCAL_C void DummyFunc254() {}
279 LOCAL_C void DummyFunc255() {}
280 LOCAL_C void DummyFunc256() {}
281 LOCAL_C void DummyFunc257() {}
282 LOCAL_C void DummyFunc258() {}
283 LOCAL_C void DummyFunc259() {}
284 LOCAL_C void DummyFunc260() {}
285 LOCAL_C void DummyFunc261() {}
286 LOCAL_C void DummyFunc262() {}
287 LOCAL_C void DummyFunc263() {}
288 LOCAL_C void DummyFunc264() {}
289 LOCAL_C void DummyFunc265() {}
290 LOCAL_C void DummyFunc266() {}
291 LOCAL_C void DummyFunc267() {}
292 LOCAL_C void DummyFunc268() {}
293 LOCAL_C void DummyFunc269() {}
294 LOCAL_C void DummyFunc270() {}
295 LOCAL_C void DummyFunc271() {}
296 LOCAL_C void DummyFunc272() {}
297 LOCAL_C void DummyFunc273() {}
298 LOCAL_C void DummyFunc274() {}
299 LOCAL_C void DummyFunc275() {}
300 LOCAL_C void DummyFunc276() {}
301 LOCAL_C void DummyFunc277() {}
302 LOCAL_C void DummyFunc278() {}
303 LOCAL_C void DummyFunc279() {}
304 LOCAL_C void DummyFunc280() {}
305 LOCAL_C void DummyFunc281() {}
306 LOCAL_C void DummyFunc282() {}
307 LOCAL_C void DummyFunc283() {}
308 LOCAL_C void DummyFunc284() {}
309 LOCAL_C void DummyFunc285() {}
310 LOCAL_C void DummyFunc286() {}
311 LOCAL_C void DummyFunc287() {}
312 LOCAL_C void DummyFunc288() {}
313 LOCAL_C void DummyFunc289() {}
314 LOCAL_C void DummyFunc290() {}
315 LOCAL_C void DummyFunc291() {}
316 LOCAL_C void DummyFunc292() {}
317 LOCAL_C void DummyFunc293() {}
318 LOCAL_C void DummyFunc294() {}
319 LOCAL_C void DummyFunc295() {}
320 LOCAL_C void DummyFunc296() {}
321 LOCAL_C void DummyFunc297() {}
322 LOCAL_C void DummyFunc298() {}
323 LOCAL_C void DummyFunc299() {}
325 typedef void (*PFV)(void);
327 LOCAL_D PFV Relocs[300]=
329 DummyFunc0, DummyFunc1, DummyFunc2, DummyFunc3, DummyFunc4, DummyFunc5, DummyFunc6, DummyFunc7, DummyFunc8, DummyFunc9,
330 DummyFunc10, DummyFunc11, DummyFunc12, DummyFunc13, DummyFunc14, DummyFunc15, DummyFunc16, DummyFunc17, DummyFunc18, DummyFunc19,
331 DummyFunc20, DummyFunc21, DummyFunc22, DummyFunc23, DummyFunc24, DummyFunc25, DummyFunc26, DummyFunc27, DummyFunc28, DummyFunc29,
332 DummyFunc30, DummyFunc31, DummyFunc32, DummyFunc33, DummyFunc34, DummyFunc35, DummyFunc36, DummyFunc37, DummyFunc38, DummyFunc39,
333 DummyFunc40, DummyFunc41, DummyFunc42, DummyFunc43, DummyFunc44, DummyFunc45, DummyFunc46, DummyFunc47, DummyFunc48, DummyFunc49,
334 DummyFunc50, DummyFunc51, DummyFunc52, DummyFunc53, DummyFunc54, DummyFunc55, DummyFunc56, DummyFunc57, DummyFunc58, DummyFunc59,
335 DummyFunc60, DummyFunc61, DummyFunc62, DummyFunc63, DummyFunc64, DummyFunc65, DummyFunc66, DummyFunc67, DummyFunc68, DummyFunc69,
336 DummyFunc70, DummyFunc71, DummyFunc72, DummyFunc73, DummyFunc74, DummyFunc75, DummyFunc76, DummyFunc77, DummyFunc78, DummyFunc79,
337 DummyFunc80, DummyFunc81, DummyFunc82, DummyFunc83, DummyFunc84, DummyFunc85, DummyFunc86, DummyFunc87, DummyFunc88, DummyFunc89,
338 DummyFunc90, DummyFunc91, DummyFunc92, DummyFunc93, DummyFunc94, DummyFunc95, DummyFunc96, DummyFunc97, DummyFunc98, DummyFunc99,
339 DummyFunc100, DummyFunc101, DummyFunc102, DummyFunc103, DummyFunc104, DummyFunc105, DummyFunc106, DummyFunc107, DummyFunc108, DummyFunc109,
340 DummyFunc110, DummyFunc111, DummyFunc112, DummyFunc113, DummyFunc114, DummyFunc115, DummyFunc116, DummyFunc117, DummyFunc118, DummyFunc119,
341 DummyFunc120, DummyFunc121, DummyFunc122, DummyFunc123, DummyFunc124, DummyFunc125, DummyFunc126, DummyFunc127, DummyFunc128, DummyFunc129,
342 DummyFunc130, DummyFunc131, DummyFunc132, DummyFunc133, DummyFunc134, DummyFunc135, DummyFunc136, DummyFunc137, DummyFunc138, DummyFunc139,
343 DummyFunc140, DummyFunc141, DummyFunc142, DummyFunc143, DummyFunc144, DummyFunc145, DummyFunc146, DummyFunc147, DummyFunc148, DummyFunc149,
344 DummyFunc150, DummyFunc151, DummyFunc152, DummyFunc153, DummyFunc154, DummyFunc155, DummyFunc156, DummyFunc157, DummyFunc158, DummyFunc159,
345 DummyFunc160, DummyFunc161, DummyFunc162, DummyFunc163, DummyFunc164, DummyFunc165, DummyFunc166, DummyFunc167, DummyFunc168, DummyFunc169,
346 DummyFunc170, DummyFunc171, DummyFunc172, DummyFunc173, DummyFunc174, DummyFunc175, DummyFunc176, DummyFunc177, DummyFunc178, DummyFunc179,
347 DummyFunc180, DummyFunc181, DummyFunc182, DummyFunc183, DummyFunc184, DummyFunc185, DummyFunc186, DummyFunc187, DummyFunc188, DummyFunc189,
348 DummyFunc190, DummyFunc191, DummyFunc192, DummyFunc193, DummyFunc194, DummyFunc195, DummyFunc196, DummyFunc197, DummyFunc198, DummyFunc199,
349 DummyFunc200, DummyFunc201, DummyFunc202, DummyFunc203, DummyFunc204, DummyFunc205, DummyFunc206, DummyFunc207, DummyFunc208, DummyFunc209,
350 DummyFunc210, DummyFunc211, DummyFunc212, DummyFunc213, DummyFunc214, DummyFunc215, DummyFunc216, DummyFunc217, DummyFunc218, DummyFunc219,
351 DummyFunc220, DummyFunc221, DummyFunc222, DummyFunc223, DummyFunc224, DummyFunc225, DummyFunc226, DummyFunc227, DummyFunc228, DummyFunc229,
352 DummyFunc230, DummyFunc231, DummyFunc232, DummyFunc233, DummyFunc234, DummyFunc235, DummyFunc236, DummyFunc237, DummyFunc238, DummyFunc239,
353 DummyFunc240, DummyFunc241, DummyFunc242, DummyFunc243, DummyFunc244, DummyFunc245, DummyFunc246, DummyFunc247, DummyFunc248, DummyFunc249,
354 DummyFunc250, DummyFunc251, DummyFunc252, DummyFunc253, DummyFunc254, DummyFunc255, DummyFunc256, DummyFunc257, DummyFunc258, DummyFunc259,
355 DummyFunc260, DummyFunc261, DummyFunc262, DummyFunc263, DummyFunc264, DummyFunc265, DummyFunc266, DummyFunc267, DummyFunc268, DummyFunc269,
356 DummyFunc270, DummyFunc271, DummyFunc272, DummyFunc273, DummyFunc274, DummyFunc275, DummyFunc276, DummyFunc277, DummyFunc278, DummyFunc279,
357 DummyFunc280, DummyFunc281, DummyFunc282, DummyFunc283, DummyFunc284, DummyFunc285, DummyFunc286, DummyFunc287, DummyFunc288, DummyFunc289,
358 DummyFunc290, DummyFunc291, DummyFunc292, DummyFunc293, DummyFunc294, DummyFunc295, DummyFunc296, DummyFunc297, DummyFunc298, DummyFunc299
361 GLDEF_C TInt E32Main()
363 if (TestData1!=(TInt)0xb504f334)
364 User::Panic(_L("T_PROT2A 1"),TestData1);
367 for (i=0; i<128; i++)
372 User::Panic(_L("T_PROT2A 2"),x);
373 for (i=0; i<300; i++)