Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | .****************************************************************************** |
2 | .* Copyright (c) 2000-2014 Ericsson Telecom AB | |
3 | .* All rights reserved. This program and the accompanying materials | |
4 | .* are made available under the terms of the Eclipse Public License v1.0 | |
5 | .* which accompanies this distribution, and is available at | |
6 | .* http://www.eclipse.org/legal/epl-v10.html | |
7 | .******************************************************************************/ | |
8 | :text. | |
9 | :lang eng. | |
10 | ||
11 | .* EDML webpage: http://cpi.ericsson.se/dwaxe/ | |
12 | .* EDML2PDF converter: http://dwaxe.ericsson.se/x2pdf | |
13 | .* EDML user guide: http://www.lmc.ericsson.se/~lmcmarg/isit/edml_ug.html | |
14 | ||
15 | .* Document header information | |
16 | :docname.Test Description | |
17 | :docno.12/152 91-CRL 113 200/3 Uen | |
18 | :rev.A | |
19 | :date.2013-01-17 | |
20 | ||
21 | :prep.ETH/XZR Krisztian Pandi | |
22 | :appr.ETH/XZ (Gyula Koos) | |
23 | :checked.ETHGRY | |
24 | ||
25 | :title.Test description of the TTCN-3 Semantic Analyzer: Unknown Object | |
26 | :contents level=2. | |
27 | .*---------------------------------------------------------------------* | |
28 | :h1.Introduction | |
29 | .*---------------------------------------------------------------------* | |
30 | .*---------------------------------------------------------------------* | |
31 | :h2.Revision history | |
32 | .*---------------------------------------------------------------------* | |
33 | :xmp tab=2. | |
34 | REV DATE PREPARED CHANGE | |
35 | __________________________________________________ | |
36 | PA1 2005-02-01 ETHESI New document for TITAN R6 | |
37 | PA2 2005-02-19 ETHESI Updated after review | |
38 | A 2005-03-18 ETHESI Approved | |
39 | B 2005-12-16 EKRISZA Updates for TITAN R6D | |
40 | C 2006-07-31 EKRISZA Updates for TITAN R6E | |
41 | D 2007-03-06 EJNOSZA Updates for TITAN R7A (expected error messages) | |
42 | E 2009-06-11 EKRISZA Name correction | |
43 | F 2010-07-02 EKRISZA corrected version information. | |
44 | G 2011-05-05 EKRISZA added new tests | |
45 | H 2011-10-10 EKRISZA corrected version information. | |
46 | A 2011-12-12 EKRISZA Updated for release | |
47 | A 2012-06-27 EFERKOV Updated for release | |
48 | A 2013-01-17 EKRIPND Updated for release | |
49 | :exmp. | |
50 | .*---------------------------------------------------------------------* | |
51 | :h2.Purpose | |
52 | .*---------------------------------------------------------------------* | |
53 | The purpose of this Test Description is to define and describe the function | |
54 | test activity for the Semantic Analyser functionality of the TTCN-3 compiler: | |
55 | :nl.SA-1/x: Unknown Object. | |
56 | :p.The specification of the test cases can be found in this document. | |
57 | .*---------------------------------------------------------------------* | |
58 | :h1.Test environment | |
59 | .*---------------------------------------------------------------------* | |
60 | .*---------------------------------------------------------------------* | |
61 | :h2.Hardware | |
62 | .*---------------------------------------------------------------------* | |
63 | No specific hardware requirement. | |
64 | .*---------------------------------------------------------------------* | |
65 | :h2.Software | |
66 | .*---------------------------------------------------------------------* | |
67 | Tests shall be carried out on the following platforms: | |
68 | :list. | |
69 | :li D='1.'.Solaris 8 (Sun OS 5.8) (gcc 3.0.4) | |
70 | :li D='2.'.SUSE Linux Enterprise server 8 (2.4.19-4GB) (gcc 3.2) | |
71 | :li D='3.'.CYGWIN_NT-5.0 (Cygwin DLL: 1.5.12) on Windows 2000 (gcc 3.3.3) | |
72 | :elist. | |
73 | .*---------------------------------------------------------------------* | |
74 | :h2.Configuration | |
75 | .*---------------------------------------------------------------------* | |
76 | The test environment had been setup in CVS. The tester program is stored in: | |
77 | :nl.TTCNv3/function_test/Tools/SAtester.pl | |
78 | :nl.Test cases are stored with extension .script in the directory: | |
79 | :nl.TTCNv3/function_test/Semantic_Analyser/ | |
80 | .*---------------------------------------------------------------------* | |
81 | :h2.Installation | |
82 | .*---------------------------------------------------------------------* | |
83 | Install proper TITAN binaries on the used platforms and make sure that | |
84 | your environment settings are correct: | |
85 | :list. | |
86 | :li D='1.'.TTCN3_DIR is set | |
87 | :li D='2.'.$TTCN3_DIR/bin is added to the PATH variable | |
88 | :li D='3.'.$TTCN3_DIR/lib is added to the LD_LIBRARY_PATH variable | |
89 | :li D='4.'.Perl 5.6.0 or higher is available on the platform | |
90 | :li D='5.'.Create a symlink to your Perl binary into the directory where the | |
91 | test cases are stored: | |
92 | :nl.ln -s <your Perl> perl | |
93 | :elist. | |
94 | .*---------------------------------------------------------------------* | |
95 | :h2.Test Tools | |
96 | .*---------------------------------------------------------------------* | |
97 | A tester program had been written in Perl especially for the Semantic Analyser | |
98 | tests. For the list of command line parameters, type 'SAtester.pl -help', for the | |
99 | complete documentation, type 'SAtester.pl -doc'. | |
100 | :p.Test cases are specified in the Test Description documents in EDML format. | |
101 | The tester program parses these files and generates the TTCN-3/ASN.1 modules, then | |
102 | calls the compiler to compile them. The result printout is then matched against | |
103 | different patterns to be able to set the verdict. Test cases contain not only | |
104 | the source modules, but the patterns as well. | |
105 | :p.The tester program allows one-by-one execution of test cases and batched | |
106 | execution as well. | |
107 | :p.NOTE: the tester program requires Perl 5.6.0 or higher. | |
108 | .*---------------------------------------------------------------------* | |
109 | :h2.Test scope | |
110 | .*---------------------------------------------------------------------* | |
111 | Ref [1]: SA-1/x: Unknown object | |
112 | :nl.Explanation: all unknown objects shall be detected by SA. | |
113 | .*---------------------------------------------------------------------* | |
114 | :h2.Test strategy | |
115 | .*---------------------------------------------------------------------* | |
116 | Test cases are based on TTCN-3 BNF according to the followings: | |
117 | :list. | |
118 | :li D='1.'.For each 'basic' definition a complete coverage is done (e.g. for | |
119 | expressions, assignments, etc.). 'Basic' means that the definition is | |
120 | used in several places. | |
121 | :li D='2.'.For each definition a complete coverage is done, except for basic | |
122 | definitions, in which case only 1-2 examples are covered, not the | |
123 | whole basic definition. This is to avoid testing all possible subcases | |
124 | for all possible places it may appear. | |
125 | :nl.NOTE: a complete coverage means that all occurances are tested where | |
126 | the specific definition may occur. This is however not complete. Only | |
127 | one occurance is tested for each construct. | |
128 | :li D='3.'.Test case names are contsructed following the path in the BNF in TTCN-3 | |
129 | and following the possible notations/subtyping in ASN.1. | |
130 | :elist. | |
131 | .*---------------------------------------------------------------------* | |
132 | :h2.Status | |
133 | .*---------------------------------------------------------------------* | |
134 | The following structures are not covered: | |
135 | :list. | |
136 | :li D='-'.sub-structures that causes parse error due to limited support of that | |
137 | part of the language (e.g. interleave construct) | |
138 | :elist. | |
139 | .*---------------------------------------------------------------------* | |
140 | :h1.Test cases | |
141 | .*---------------------------------------------------------------------* | |
142 | .*---------------------------------------------------------------------* | |
143 | :h2.Unknown objects | |
144 | .*---------------------------------------------------------------------* | |
145 | .*---------------------------------------------------------------------* | |
146 | :h3.TTCN-3::TypeDef->RecordDef: ArrayDef | |
147 | .*---------------------------------------------------------------------* | |
148 | :xmp tab=0. | |
149 | <TC - TTCN-3::TypeDef->RecordDef: ArrayDef> | |
150 | ||
151 | <COMPILE> | |
152 | <VERDICT_LEAF PASS> | |
153 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
154 | module ModuleA { | |
155 | // NOTE: not yet supported | |
156 | type record Type_record { | |
157 | integer field1, | |
158 | integer field2[666-Nonexi] | |
159 | } | |
160 | } | |
161 | <END_MODULE> | |
162 | <RESULT IF_PASS COUNT 1> | |
163 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
164 | <END_RESULT> | |
165 | <RESULT IF_PASS COUNT 1> | |
166 | (?is)\berror: | |
167 | <END_RESULT> | |
168 | <RESULT IF_FAIL COUNT 1> | |
169 | (?im)\berror\b.+?not.+?supported | |
170 | <END_RESULT> | |
171 | <RESULT IF_FAIL COUNT 1> | |
172 | (?is)\berror: | |
173 | <END_RESULT> | |
174 | <RESULT IF_PASS POSITIVE> | |
175 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
176 | <END_RESULT> | |
177 | <END_TC> | |
178 | :exmp. | |
179 | ||
180 | .*---------------------------------------------------------------------* | |
181 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType | |
182 | .*---------------------------------------------------------------------* | |
183 | :xmp tab=0. | |
184 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType> | |
185 | ||
186 | <COMPILE> | |
187 | <VERDICT_LEAF PASS> | |
188 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
189 | module ModuleA { | |
190 | type record Type_record { | |
191 | integer field1, | |
192 | Nonexi field2 | |
193 | } | |
194 | } | |
195 | <END_MODULE> | |
196 | <RESULT IF_PASS COUNT 1> | |
197 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
198 | <END_RESULT> | |
199 | <RESULT IF_PASS COUNT 1> | |
200 | (?is)\berror: | |
201 | <END_RESULT> | |
202 | <RESULT IF_PASS POSITIVE> | |
203 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
204 | <END_RESULT> | |
205 | <END_TC> | |
206 | :exmp. | |
207 | ||
208 | .*---------------------------------------------------------------------* | |
209 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->LocalDef | |
210 | .*---------------------------------------------------------------------* | |
211 | :xmp tab=0. | |
212 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->LocalDef> | |
213 | ||
214 | <COMPILE> | |
215 | <VERDICT_LEAF PASS> | |
216 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
217 | module ModuleA { | |
218 | type record Type_record { | |
219 | integer field1, | |
220 | // NOTE: treated as a local definition | |
221 | Nonexi.MyType field4 | |
222 | } | |
223 | } | |
224 | <END_MODULE> | |
225 | <RESULT IF_PASS COUNT 1> | |
226 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
227 | <END_RESULT> | |
228 | <RESULT IF_PASS COUNT 1> | |
229 | (?is)\berror: | |
230 | <END_RESULT> | |
231 | <RESULT IF_PASS POSITIVE> | |
232 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
233 | <END_RESULT> | |
234 | <END_TC> | |
235 | :exmp. | |
236 | ||
237 | .*---------------------------------------------------------------------* | |
238 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->ModuleId | |
239 | .*---------------------------------------------------------------------* | |
240 | :xmp tab=0. | |
241 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->ModuleId> | |
242 | ||
243 | <COMPILE> | |
244 | <VERDICT_LEAF PASS> | |
245 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
246 | module ModuleA { | |
247 | type record Type_record { | |
248 | integer field1, | |
249 | // NOTE: treated as a module reference because of the objid value | |
250 | Nonexi.objid {0 4 0}.MyType field4 | |
251 | } | |
252 | } | |
253 | <END_MODULE> | |
254 | <RESULT IF_PASS COUNT 1> | |
255 | (?im)\berror\b.+?no.+?module.+?Nonexi | |
256 | <END_RESULT> | |
257 | <RESULT IF_PASS COUNT 1> | |
258 | (?is)\berror: | |
259 | <END_RESULT> | |
260 | <RESULT IF_PASS POSITIVE> | |
261 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
262 | <END_RESULT> | |
263 | <END_TC> | |
264 | :exmp. | |
265 | ||
266 | .*---------------------------------------------------------------------* | |
267 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->Definition | |
268 | .*---------------------------------------------------------------------* | |
269 | :xmp tab=0. | |
270 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->Definition> | |
271 | ||
272 | <COMPILE> | |
273 | <VERDICT_LEAF PASS> | |
274 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
275 | module ModuleA { | |
276 | type record Type_record { | |
277 | integer field1, | |
278 | ModuleA.Nonexi field6 | |
279 | } | |
280 | } | |
281 | <END_MODULE> | |
282 | <RESULT IF_PASS COUNT 1> | |
283 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
284 | <END_RESULT> | |
285 | <RESULT IF_PASS COUNT 1> | |
286 | (?is)\berror: | |
287 | <END_RESULT> | |
288 | <RESULT IF_PASS POSITIVE> | |
289 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
290 | <END_RESULT> | |
291 | <END_TC> | |
292 | :exmp. | |
293 | ||
294 | .*---------------------------------------------------------------------* | |
295 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType->Field reference | |
296 | .*---------------------------------------------------------------------* | |
297 | :xmp tab=0. | |
298 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType->Field reference> | |
299 | ||
300 | <COMPILE> | |
301 | <VERDICT_LEAF PASS> | |
302 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
303 | module ModuleA { | |
304 | type record Type_record1 { | |
305 | boolean field1 | |
306 | } | |
307 | type record Type_record2 { | |
308 | integer field1, | |
309 | Type_record1.Nonexi field2 | |
310 | } | |
311 | } | |
312 | <END_MODULE> | |
313 | <RESULT IF_PASS COUNT 1> | |
314 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
315 | <END_RESULT> | |
316 | <RESULT IF_PASS COUNT 1> | |
317 | (?is)\berror: | |
318 | <END_RESULT> | |
319 | <RESULT IF_PASS POSITIVE> | |
320 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
321 | <END_RESULT> | |
322 | <END_TC> | |
323 | :exmp. | |
324 | ||
325 | .*---------------------------------------------------------------------* | |
326 | :h3.TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue | |
327 | .*---------------------------------------------------------------------* | |
328 | :xmp tab=0. | |
329 | <TC - TTCN-3::TypeDef->RecordDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue> | |
330 | ||
331 | <COMPILE> | |
332 | <VERDICT_LEAF FAIL> | |
333 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
334 | module ModuleA { | |
335 | type boolean MyType; | |
336 | type record Type_record { | |
337 | integer field1, | |
338 | // NOTE: modules are identified by name only yet | |
339 | ModuleA.objid {0 4 Nonexi}.MyType field5 | |
340 | } | |
341 | } | |
342 | <END_MODULE> | |
343 | <RESULT IF_PASS COUNT 1> | |
344 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
345 | <END_RESULT> | |
346 | <RESULT IF_PASS COUNT 1> | |
347 | (?is)\berror: | |
348 | <END_RESULT> | |
349 | <RESULT IF_PASS POSITIVE> | |
350 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
351 | <END_RESULT> | |
352 | <RESULT IF_FAIL NEGATIVE> | |
353 | (?im)\berror\b | |
354 | <END_RESULT> | |
355 | <END_TC> | |
356 | :exmp. | |
357 | ||
358 | .*---------------------------------------------------------------------* | |
359 | :h3.TTCN-3::TypeDef->RecordDef: SubTypeSpec->AllowedValues | |
360 | .*---------------------------------------------------------------------* | |
361 | :xmp tab=0. | |
362 | <TC - TTCN-3::TypeDef->RecordDef: SubTypeSpec->AllowedValues> | |
363 | ||
364 | <COMPILE> | |
365 | <VERDICT_LEAF PASS> | |
366 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
367 | module ModuleA { | |
368 | type record Type_record { | |
369 | integer field1, | |
370 | integer field7 (3,4,Nonexi) | |
371 | } | |
372 | } | |
373 | <END_MODULE> | |
374 | <RESULT IF_PASS COUNT 1> | |
375 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
376 | <END_RESULT> | |
377 | <RESULT IF_PASS COUNT 1> | |
378 | (?is)\berror: | |
379 | <END_RESULT> | |
380 | <RESULT IF_PASS POSITIVE> | |
381 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
382 | <END_RESULT> | |
383 | <END_TC> | |
384 | :exmp. | |
385 | ||
386 | .*---------------------------------------------------------------------* | |
387 | :h3.TTCN-3::TypeDef->RecordDef: SubTypeSpec->StringLength | |
388 | .*---------------------------------------------------------------------* | |
389 | :xmp tab=0. | |
390 | <TC - TTCN-3::TypeDef->RecordDef: SubTypeSpec->StringLength> | |
391 | ||
392 | <COMPILE> | |
393 | <VERDICT_LEAF PASS> | |
394 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
395 | module ModuleA { | |
396 | type record Type_record { | |
397 | integer field1, | |
398 | // TR 623: length restriction of charstrings | |
399 | charstring field8 length(666-Nonexi07) | |
400 | } | |
401 | } | |
402 | <END_MODULE> | |
403 | <RESULT IF_PASS COUNT 1> | |
404 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
405 | <END_RESULT> | |
406 | <RESULT IF_PASS COUNT 1> | |
407 | (?is)\berror: | |
408 | <END_RESULT> | |
409 | <RESULT IF_PASS POSITIVE> | |
410 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
411 | <END_RESULT> | |
412 | <END_TC> | |
413 | :exmp. | |
414 | ||
415 | .*---------------------------------------------------------------------* | |
416 | :h3.TTCN-3::TypeDef->UnionDef: ArrayDef | |
417 | .*---------------------------------------------------------------------* | |
418 | :xmp tab=0. | |
419 | <TC - TTCN-3::TypeDef->UnionDef: ArrayDef> | |
420 | <COMPILE> | |
421 | <VERDICT_LEAF PASS> | |
422 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
423 | module ModuleA { | |
424 | // NOTE: not yet supported | |
425 | type union Type_union { | |
426 | integer field1, | |
427 | integer field2[666-Nonexi] | |
428 | } | |
429 | } | |
430 | <END_MODULE> | |
431 | <RESULT IF_PASS COUNT 1> | |
432 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
433 | <END_RESULT> | |
434 | <RESULT IF_PASS COUNT 1> | |
435 | (?is)\berror: | |
436 | <END_RESULT> | |
437 | <RESULT IF_PASS POSITIVE> | |
438 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
439 | <END_RESULT> | |
440 | <RESULT IF_FAIL COUNT 1> | |
441 | (?im)\berror\b.+?not.+?supported | |
442 | <END_RESULT> | |
443 | <RESULT IF_FAIL COUNT 1> | |
444 | (?is)\berror: | |
445 | <END_RESULT> | |
446 | <END_TC> | |
447 | :exmp. | |
448 | ||
449 | .*---------------------------------------------------------------------* | |
450 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType | |
451 | .*---------------------------------------------------------------------* | |
452 | :xmp tab=0. | |
453 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType> | |
454 | ||
455 | <COMPILE> | |
456 | <VERDICT_LEAF PASS> | |
457 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
458 | module ModuleA { | |
459 | type union Type_union { | |
460 | integer field1, | |
461 | Nonexi field2 | |
462 | } | |
463 | } | |
464 | <END_MODULE> | |
465 | <RESULT IF_PASS COUNT 1> | |
466 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
467 | <END_RESULT> | |
468 | <RESULT IF_PASS COUNT 1> | |
469 | (?is)\berror: | |
470 | <END_RESULT> | |
471 | <RESULT IF_PASS POSITIVE> | |
472 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
473 | <END_RESULT> | |
474 | <END_TC> | |
475 | :exmp. | |
476 | ||
477 | .*---------------------------------------------------------------------* | |
478 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->LocalDef | |
479 | .*---------------------------------------------------------------------* | |
480 | :xmp tab=0. | |
481 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->LocalDef> | |
482 | ||
483 | <COMPILE> | |
484 | <VERDICT_LEAF PASS> | |
485 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
486 | module ModuleA { | |
487 | type union Type_union { | |
488 | integer field1, | |
489 | // NOTE: treated as a local definition | |
490 | Nonexi.MyType field4 | |
491 | } | |
492 | } | |
493 | <END_MODULE> | |
494 | <RESULT IF_PASS COUNT 1> | |
495 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
496 | <END_RESULT> | |
497 | <RESULT IF_PASS COUNT 1> | |
498 | (?is)\berror: | |
499 | <END_RESULT> | |
500 | <RESULT IF_PASS POSITIVE> | |
501 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
502 | <END_RESULT> | |
503 | <END_TC> | |
504 | :exmp. | |
505 | ||
506 | .*---------------------------------------------------------------------* | |
507 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->ModuleId | |
508 | .*---------------------------------------------------------------------* | |
509 | :xmp tab=0. | |
510 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->ModuleId> | |
511 | ||
512 | <COMPILE> | |
513 | <VERDICT_LEAF PASS> | |
514 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
515 | module ModuleA { | |
516 | type union Type_union { | |
517 | integer field1, | |
518 | // NOTE: treated as a module reference because of the objid value | |
519 | Nonexi.objid {0 4 0}.MyType field4 | |
520 | } | |
521 | } | |
522 | <END_MODULE> | |
523 | <RESULT IF_PASS COUNT 1> | |
524 | (?im)\berror\b.+?no.+?module.+?Nonexi | |
525 | <END_RESULT> | |
526 | <RESULT IF_PASS COUNT 1> | |
527 | (?is)\berror: | |
528 | <END_RESULT> | |
529 | <RESULT IF_PASS POSITIVE> | |
530 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
531 | <END_RESULT> | |
532 | <END_TC> | |
533 | :exmp. | |
534 | ||
535 | .*---------------------------------------------------------------------* | |
536 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->Definition | |
537 | .*---------------------------------------------------------------------* | |
538 | :xmp tab=0. | |
539 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->Definition> | |
540 | ||
541 | <COMPILE> | |
542 | <VERDICT_LEAF PASS> | |
543 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
544 | module ModuleA { | |
545 | type union Type_union { | |
546 | integer field1, | |
547 | ModuleA.Nonexi field6 | |
548 | } | |
549 | } | |
550 | <END_MODULE> | |
551 | <RESULT IF_PASS COUNT 1> | |
552 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
553 | <END_RESULT> | |
554 | <RESULT IF_PASS COUNT 1> | |
555 | (?is)\berror: | |
556 | <END_RESULT> | |
557 | <RESULT IF_PASS POSITIVE> | |
558 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
559 | <END_RESULT> | |
560 | <END_TC> | |
561 | :exmp. | |
562 | ||
563 | .*---------------------------------------------------------------------* | |
564 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType->Field reference | |
565 | .*---------------------------------------------------------------------* | |
566 | :xmp tab=0. | |
567 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType->Field reference> | |
568 | ||
569 | <COMPILE> | |
570 | <VERDICT_LEAF PASS> | |
571 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
572 | module ModuleA { | |
573 | type union Type_union1 { | |
574 | boolean field1 | |
575 | } | |
576 | type union Type_union2 { | |
577 | integer field1, | |
578 | Type_union1.Nonexi field2 | |
579 | } | |
580 | } | |
581 | <END_MODULE> | |
582 | <RESULT IF_PASS COUNT 1> | |
583 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
584 | <END_RESULT> | |
585 | <RESULT IF_PASS COUNT 1> | |
586 | (?is)\berror: | |
587 | <END_RESULT> | |
588 | <RESULT IF_PASS POSITIVE> | |
589 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
590 | <END_RESULT> | |
591 | <END_TC> | |
592 | :exmp. | |
593 | ||
594 | .*---------------------------------------------------------------------* | |
595 | :h3.TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue | |
596 | .*---------------------------------------------------------------------* | |
597 | :xmp tab=0. | |
598 | <TC - TTCN-3::TypeDef->UnionDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue> | |
599 | ||
600 | <COMPILE> | |
601 | <VERDICT_LEAF FAIL> | |
602 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
603 | module ModuleA { | |
604 | type verdicttype MyType; | |
605 | type union Type_union { | |
606 | integer field1, | |
607 | // NOTE: modules are identified by name only yet | |
608 | ModuleA.objid {0 4 Nonexi}.MyType field5 | |
609 | } | |
610 | } | |
611 | <END_MODULE> | |
612 | <RESULT IF_PASS COUNT 1> | |
613 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
614 | <END_RESULT> | |
615 | <RESULT IF_PASS COUNT 1> | |
616 | (?is)\berror: | |
617 | <END_RESULT> | |
618 | <RESULT IF_PASS POSITIVE> | |
619 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
620 | <END_RESULT> | |
621 | <RESULT IF_FAIL NEGATIVE> | |
622 | (?im)\berror\b | |
623 | <END_RESULT> | |
624 | <END_TC> | |
625 | :exmp. | |
626 | ||
627 | .*---------------------------------------------------------------------* | |
628 | :h3.TTCN-3::TypeDef->UnionDef: SubTypeSpec->AllowedValues | |
629 | .*---------------------------------------------------------------------* | |
630 | :xmp tab=0. | |
631 | <TC - TTCN-3::TypeDef->UnionDef: SubTypeSpec->AllowedValues> | |
632 | ||
633 | <COMPILE> | |
634 | <VERDICT_LEAF PASS> | |
635 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
636 | module ModuleA { | |
637 | type union Type_union { | |
638 | integer field1, | |
639 | integer field7 (3,4,Nonexi) | |
640 | } | |
641 | } | |
642 | <END_MODULE> | |
643 | <RESULT IF_PASS COUNT 1> | |
644 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
645 | <END_RESULT> | |
646 | <RESULT IF_PASS COUNT 1> | |
647 | (?is)\berror: | |
648 | <END_RESULT> | |
649 | <RESULT IF_PASS POSITIVE> | |
650 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
651 | <END_RESULT> | |
652 | <END_TC> | |
653 | :exmp. | |
654 | ||
655 | .*---------------------------------------------------------------------* | |
656 | :h3.TTCN-3::TypeDef->UnionDef: SubTypeSpec->StringLength | |
657 | .*---------------------------------------------------------------------* | |
658 | :xmp tab=0. | |
659 | <TC - TTCN-3::TypeDef->UnionDef: SubTypeSpec->StringLength> | |
660 | ||
661 | <COMPILE> | |
662 | <VERDICT_LEAF PASS> | |
663 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
664 | module ModuleA { | |
665 | type union Type_union { | |
666 | integer field1, | |
667 | // TR 623: length restriction of charstrings | |
668 | charstring field8 length(666-Nonexi07) | |
669 | } | |
670 | } | |
671 | <END_MODULE> | |
672 | <RESULT IF_PASS COUNT 1> | |
673 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
674 | <END_RESULT> | |
675 | <RESULT IF_PASS COUNT 1> | |
676 | (?is)\berror: | |
677 | <END_RESULT> | |
678 | <RESULT IF_PASS POSITIVE> | |
679 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
680 | <END_RESULT> | |
681 | <END_TC> | |
682 | :exmp. | |
683 | ||
684 | .*---------------------------------------------------------------------* | |
685 | :h3.TTCN-3::TypeDef->SetDef: ArrayDef | |
686 | .*---------------------------------------------------------------------* | |
687 | :xmp tab=0. | |
688 | <TC - TTCN-3::TypeDef->SetDef: ArrayDef> | |
689 | ||
690 | <COMPILE> | |
691 | <VERDICT_LEAF PASS> | |
692 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
693 | module ModuleA { | |
694 | // NOTE: not yet supported | |
695 | type set Type_set { | |
696 | integer field1, | |
697 | integer field2[666-Nonexi] | |
698 | } | |
699 | } | |
700 | <END_MODULE> | |
701 | <RESULT IF_PASS COUNT 1> | |
702 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
703 | <END_RESULT> | |
704 | <RESULT IF_PASS COUNT 1> | |
705 | (?is)\berror: | |
706 | <END_RESULT> | |
707 | <RESULT IF_PASS POSITIVE> | |
708 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
709 | <END_RESULT> | |
710 | <RESULT IF_FAIL COUNT 1> | |
711 | (?im)\berror\b.+?not.+?supported | |
712 | <END_RESULT> | |
713 | <RESULT IF_FAIL COUNT 1> | |
714 | (?is)\berror: | |
715 | <END_RESULT> | |
716 | <END_TC> | |
717 | :exmp. | |
718 | ||
719 | .*---------------------------------------------------------------------* | |
720 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType | |
721 | .*---------------------------------------------------------------------* | |
722 | :xmp tab=0. | |
723 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType> | |
724 | ||
725 | <COMPILE> | |
726 | <VERDICT_LEAF PASS> | |
727 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
728 | module ModuleA { | |
729 | type set Type_set { | |
730 | integer field1, | |
731 | Nonexi field2 | |
732 | } | |
733 | } | |
734 | <END_MODULE> | |
735 | <RESULT IF_PASS COUNT 1> | |
736 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
737 | <END_RESULT> | |
738 | <RESULT IF_PASS COUNT 1> | |
739 | (?is)\berror: | |
740 | <END_RESULT> | |
741 | <RESULT IF_PASS POSITIVE> | |
742 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
743 | <END_RESULT> | |
744 | <END_TC> | |
745 | :exmp. | |
746 | ||
747 | .*---------------------------------------------------------------------* | |
748 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->LocalDef | |
749 | .*---------------------------------------------------------------------* | |
750 | :xmp tab=0. | |
751 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->LocalDef> | |
752 | ||
753 | <COMPILE> | |
754 | <VERDICT_LEAF PASS> | |
755 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
756 | module ModuleA { | |
757 | type set Type_set { | |
758 | integer field1, | |
759 | // NOTE: treated as a local definition | |
760 | Nonexi.MyType field4 | |
761 | } | |
762 | } | |
763 | <END_MODULE> | |
764 | <RESULT IF_PASS COUNT 1> | |
765 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
766 | <END_RESULT> | |
767 | <RESULT IF_PASS COUNT 1> | |
768 | (?is)\berror: | |
769 | <END_RESULT> | |
770 | <RESULT IF_PASS POSITIVE> | |
771 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
772 | <END_RESULT> | |
773 | <END_TC> | |
774 | :exmp. | |
775 | ||
776 | .*---------------------------------------------------------------------* | |
777 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->ModuleId | |
778 | .*---------------------------------------------------------------------* | |
779 | :xmp tab=0. | |
780 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->ModuleId> | |
781 | ||
782 | <COMPILE> | |
783 | <VERDICT_LEAF PASS> | |
784 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
785 | module ModuleA { | |
786 | type set Type_set { | |
787 | integer field1, | |
788 | // NOTE: treated as a module reference because of the objid value | |
789 | Nonexi.objid {0 4 0}.MyType field4 | |
790 | } | |
791 | } | |
792 | <END_MODULE> | |
793 | <RESULT IF_PASS COUNT 1> | |
794 | (?im)\berror\b.+?no.+?module.+?Nonexi | |
795 | <END_RESULT> | |
796 | <RESULT IF_PASS COUNT 1> | |
797 | (?is)\berror: | |
798 | <END_RESULT> | |
799 | <RESULT IF_PASS POSITIVE> | |
800 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
801 | <END_RESULT> | |
802 | <END_TC> | |
803 | :exmp. | |
804 | ||
805 | .*---------------------------------------------------------------------* | |
806 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->Definition | |
807 | .*---------------------------------------------------------------------* | |
808 | :xmp tab=0. | |
809 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->Definition> | |
810 | ||
811 | <COMPILE> | |
812 | <VERDICT_LEAF PASS> | |
813 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
814 | module ModuleA { | |
815 | type set Type_set { | |
816 | integer field1, | |
817 | ModuleA.Nonexi field6 | |
818 | } | |
819 | } | |
820 | <END_MODULE> | |
821 | <RESULT IF_PASS COUNT 1> | |
822 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
823 | <END_RESULT> | |
824 | <RESULT IF_PASS COUNT 1> | |
825 | (?is)\berror: | |
826 | <END_RESULT> | |
827 | <RESULT IF_PASS POSITIVE> | |
828 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
829 | <END_RESULT> | |
830 | <END_TC> | |
831 | :exmp. | |
832 | ||
833 | .*---------------------------------------------------------------------* | |
834 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType->Field reference | |
835 | .*---------------------------------------------------------------------* | |
836 | :xmp tab=0. | |
837 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType->Field reference> | |
838 | ||
839 | <COMPILE> | |
840 | <VERDICT_LEAF PASS> | |
841 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
842 | module ModuleA { | |
843 | type set Type_set1 { | |
844 | boolean field1 | |
845 | } | |
846 | type set Type_set2 { | |
847 | integer field1, | |
848 | Type_set1.Nonexi field2 | |
849 | } | |
850 | } | |
851 | <END_MODULE> | |
852 | <RESULT IF_PASS COUNT 1> | |
853 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
854 | <END_RESULT> | |
855 | <RESULT IF_PASS COUNT 1> | |
856 | (?is)\berror: | |
857 | <END_RESULT> | |
858 | <RESULT IF_PASS POSITIVE> | |
859 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
860 | <END_RESULT> | |
861 | <END_TC> | |
862 | :exmp. | |
863 | ||
864 | .*---------------------------------------------------------------------* | |
865 | :h3.TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue | |
866 | .*---------------------------------------------------------------------* | |
867 | :xmp tab=0. | |
868 | <TC - TTCN-3::TypeDef->SetDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue> | |
869 | ||
870 | <COMPILE> | |
871 | <VERDICT_LEAF FAIL> | |
872 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
873 | module ModuleA { | |
874 | type boolean MyType; | |
875 | type set Type_set { | |
876 | integer field1, | |
877 | // NOTE: modules are identified by name only yet | |
878 | ModuleA.objid {0 4 Nonexi}.MyType field5 | |
879 | } | |
880 | } | |
881 | <END_MODULE> | |
882 | <RESULT IF_PASS COUNT 1> | |
883 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
884 | <END_RESULT> | |
885 | <RESULT IF_PASS COUNT 1> | |
886 | (?is)\berror: | |
887 | <END_RESULT> | |
888 | <RESULT IF_PASS POSITIVE> | |
889 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
890 | <END_RESULT> | |
891 | <RESULT IF_FAIL NEGATIVE> | |
892 | (?im)\berror\b | |
893 | <END_RESULT> | |
894 | <END_TC> | |
895 | :exmp. | |
896 | ||
897 | .*---------------------------------------------------------------------* | |
898 | :h3.TTCN-3::TypeDef->SetDef: SubTypeSpec->AllowedValues | |
899 | .*---------------------------------------------------------------------* | |
900 | :xmp tab=0. | |
901 | <TC - TTCN-3::TypeDef->SetDef: SubTypeSpec->AllowedValues> | |
902 | ||
903 | <COMPILE> | |
904 | <VERDICT_LEAF PASS> | |
905 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
906 | module ModuleA { | |
907 | type set Type_set { | |
908 | integer field1, | |
909 | integer field7 (3,4,Nonexi) | |
910 | } | |
911 | } | |
912 | <END_MODULE> | |
913 | <RESULT IF_PASS COUNT 1> | |
914 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
915 | <END_RESULT> | |
916 | <RESULT IF_PASS COUNT 1> | |
917 | (?is)\berror: | |
918 | <END_RESULT> | |
919 | <RESULT IF_PASS POSITIVE> | |
920 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
921 | <END_RESULT> | |
922 | <END_TC> | |
923 | :exmp. | |
924 | ||
925 | .*---------------------------------------------------------------------* | |
926 | :h3.TTCN-3::TypeDef->SetDef: SubTypeSpec->StringLength | |
927 | .*---------------------------------------------------------------------* | |
928 | :xmp tab=0. | |
929 | <TC - TTCN-3::TypeDef->SetDef: SubTypeSpec->StringLength> | |
930 | ||
931 | <COMPILE> | |
932 | <VERDICT_LEAF PASS> | |
933 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
934 | module ModuleA { | |
935 | type set Type_set { | |
936 | integer field1, | |
937 | // TR 623: length restriction of charstrings | |
938 | charstring field8 length(666-Nonexi07) | |
939 | } | |
940 | } | |
941 | <END_MODULE> | |
942 | <RESULT IF_PASS COUNT 1> | |
943 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
944 | <END_RESULT> | |
945 | <RESULT IF_PASS COUNT 1> | |
946 | (?is)\berror: | |
947 | <END_RESULT> | |
948 | <RESULT IF_PASS POSITIVE> | |
949 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
950 | <END_RESULT> | |
951 | <END_TC> | |
952 | :exmp. | |
953 | ||
954 | .*---------------------------------------------------------------------* | |
955 | :h3.TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->LocalDef | |
956 | .*---------------------------------------------------------------------* | |
957 | :xmp tab=0. | |
958 | <TC - TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->LocalDef> | |
959 | <COMPILE> | |
960 | <VERDICT_LEAF PASS> | |
961 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
962 | module ModuleA { | |
963 | type record of Nonexi MyType2; | |
964 | } | |
965 | <END_MODULE> | |
966 | <RESULT IF_PASS COUNT 1> | |
967 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
968 | <END_RESULT> | |
969 | <RESULT IF_PASS COUNT 1> | |
970 | (?is)\berror: | |
971 | <END_RESULT> | |
972 | <RESULT IF_PASS POSITIVE> | |
973 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
974 | <END_RESULT> | |
975 | <END_TC> | |
976 | :exmp. | |
977 | ||
978 | .*---------------------------------------------------------------------* | |
979 | :h3.TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->ModuleId | |
980 | .*---------------------------------------------------------------------* | |
981 | :xmp tab=0. | |
982 | <TC - TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->ModuleId> | |
983 | <COMPILE> | |
984 | <VERDICT_LEAF PASS> | |
985 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
986 | module ModuleA { | |
987 | type record of Nonexi.MyType MyType2; | |
988 | } | |
989 | <END_MODULE> | |
990 | <RESULT IF_PASS COUNT 1> | |
991 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
992 | <END_RESULT> | |
993 | <RESULT IF_PASS COUNT 1> | |
994 | (?is)\berror: | |
995 | <END_RESULT> | |
996 | <RESULT IF_PASS POSITIVE> | |
997 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
998 | <END_RESULT> | |
999 | <END_TC> | |
1000 | :exmp. | |
1001 | ||
1002 | .*---------------------------------------------------------------------* | |
1003 | :h3.TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->Definition | |
1004 | .*---------------------------------------------------------------------* | |
1005 | :xmp tab=0. | |
1006 | <TC - TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->Definition> | |
1007 | <COMPILE> | |
1008 | <VERDICT_LEAF PASS> | |
1009 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1010 | module ModuleA { | |
1011 | type record of ModuleA.Nonexi MyType2; | |
1012 | } | |
1013 | <END_MODULE> | |
1014 | <RESULT IF_PASS COUNT 1> | |
1015 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1016 | <END_RESULT> | |
1017 | <RESULT IF_PASS COUNT 1> | |
1018 | (?is)\berror: | |
1019 | <END_RESULT> | |
1020 | <RESULT IF_PASS POSITIVE> | |
1021 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1022 | <END_RESULT> | |
1023 | <END_TC> | |
1024 | :exmp. | |
1025 | ||
1026 | .*---------------------------------------------------------------------* | |
1027 | :h3.TTCN-3::TypeDef->RecordOfDef: ReferencedType->Field reference | |
1028 | .*---------------------------------------------------------------------* | |
1029 | :xmp tab=0. | |
1030 | <TC - TTCN-3::TypeDef->RecordOfDef: ReferencedType->Field reference> | |
1031 | <COMPILE> | |
1032 | <VERDICT_LEAF PASS> | |
1033 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1034 | module ModuleA { | |
1035 | type record MyType_record { | |
1036 | boolean field1 | |
1037 | } | |
1038 | type record of MyType_record.Nonexi MyType2; | |
1039 | } | |
1040 | <END_MODULE> | |
1041 | <RESULT IF_PASS COUNT 1> | |
1042 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
1043 | <END_RESULT> | |
1044 | <RESULT IF_PASS COUNT 1> | |
1045 | (?is)\berror: | |
1046 | <END_RESULT> | |
1047 | <RESULT IF_PASS POSITIVE> | |
1048 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1049 | <END_RESULT> | |
1050 | <END_TC> | |
1051 | :exmp. | |
1052 | ||
1053 | .*---------------------------------------------------------------------* | |
1054 | :h3.TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue | |
1055 | .*---------------------------------------------------------------------* | |
1056 | :xmp tab=0. | |
1057 | <TC - TTCN-3::TypeDef->RecordOfDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue> | |
1058 | <COMPILE> | |
1059 | <VERDICT_LEAF FAIL> | |
1060 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1061 | module ModuleA { | |
1062 | type boolean MyType1; | |
1063 | type record of ModuleA.objid {0 4 Nonexi}.MyType1 MyType2; | |
1064 | } | |
1065 | <END_MODULE> | |
1066 | <RESULT IF_PASS COUNT 1> | |
1067 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1068 | <END_RESULT> | |
1069 | <RESULT IF_PASS COUNT 1> | |
1070 | (?is)\berror: | |
1071 | <END_RESULT> | |
1072 | <RESULT IF_PASS POSITIVE> | |
1073 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1074 | <END_RESULT> | |
1075 | <RESULT IF_FAIL NEGATIVE> | |
1076 | (?im)\berror\b | |
1077 | <END_RESULT> | |
1078 | <END_TC> | |
1079 | :exmp. | |
1080 | ||
1081 | .*---------------------------------------------------------------------* | |
1082 | :h3.TTCN-3::TypeDef->RecordOfDef: AllowedValues | |
1083 | .*---------------------------------------------------------------------* | |
1084 | :xmp tab=0. | |
1085 | <TC - TTCN-3::TypeDef->RecordOfDef: AllowedValues> | |
1086 | <COMPILE> | |
1087 | <VERDICT_LEAF PASS> | |
1088 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1089 | module ModuleA { | |
1090 | type record of integer MyType6 (666-Nonexi); | |
1091 | } | |
1092 | <END_MODULE> | |
1093 | <RESULT IF_PASS COUNT 1> | |
1094 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1095 | <END_RESULT> | |
1096 | <RESULT IF_PASS COUNT 1> | |
1097 | (?is)\berror: | |
1098 | <END_RESULT> | |
1099 | <RESULT IF_PASS POSITIVE> | |
1100 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1101 | <END_RESULT> | |
1102 | <END_TC> | |
1103 | :exmp. | |
1104 | ||
1105 | .*---------------------------------------------------------------------* | |
1106 | :h3.TTCN-3::TypeDef->RecordOfDef: StringLength1 | |
1107 | .*---------------------------------------------------------------------* | |
1108 | :xmp tab=0. | |
1109 | <TC - TTCN-3::TypeDef->RecordOfDef: StringLength1> | |
1110 | <COMPILE> | |
1111 | <VERDICT_LEAF PASS> | |
1112 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1113 | module ModuleA { | |
1114 | // StringLength | |
1115 | type record length(0..666-Nonexi) of integer MyType1; | |
1116 | } | |
1117 | <END_MODULE> | |
1118 | <RESULT IF_PASS COUNT 1> | |
1119 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1120 | <END_RESULT> | |
1121 | <RESULT IF_PASS COUNT 1> | |
1122 | (?is)\berror: | |
1123 | <END_RESULT> | |
1124 | <RESULT IF_PASS POSITIVE> | |
1125 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1126 | <END_RESULT> | |
1127 | <END_TC> | |
1128 | :exmp. | |
1129 | ||
1130 | .*---------------------------------------------------------------------* | |
1131 | :h3.TTCN-3::TypeDef->RecordOfDef: StringLength2 | |
1132 | .*---------------------------------------------------------------------* | |
1133 | :xmp tab=0. | |
1134 | <TC - TTCN-3::TypeDef->RecordOfDef: StringLength2> | |
1135 | <COMPILE> | |
1136 | <VERDICT_LEAF PASS> | |
1137 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1138 | module ModuleA { | |
1139 | // TR 623: length restriction of charstrings | |
1140 | type record of charstring MyType7 length(0..666-Nonexi); | |
1141 | } | |
1142 | <END_MODULE> | |
1143 | <RESULT IF_PASS COUNT 1> | |
1144 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1145 | <END_RESULT> | |
1146 | <RESULT IF_PASS COUNT 1> | |
1147 | (?is)\berror: | |
1148 | <END_RESULT> | |
1149 | <RESULT IF_PASS POSITIVE> | |
1150 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1151 | <END_RESULT> | |
1152 | <END_TC> | |
1153 | :exmp. | |
1154 | ||
1155 | .*---------------------------------------------------------------------* | |
1156 | :h3.TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->LocalDef | |
1157 | .*---------------------------------------------------------------------* | |
1158 | :xmp tab=0. | |
1159 | <TC - TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->LocalDef> | |
1160 | <COMPILE> | |
1161 | <VERDICT_LEAF PASS> | |
1162 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1163 | module ModuleA { | |
1164 | type set of Nonexi MyType2; | |
1165 | } | |
1166 | <END_MODULE> | |
1167 | <RESULT IF_PASS COUNT 1> | |
1168 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1169 | <END_RESULT> | |
1170 | <RESULT IF_PASS COUNT 1> | |
1171 | (?is)\berror: | |
1172 | <END_RESULT> | |
1173 | <RESULT IF_PASS POSITIVE> | |
1174 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1175 | <END_RESULT> | |
1176 | <END_TC> | |
1177 | :exmp. | |
1178 | ||
1179 | .*---------------------------------------------------------------------* | |
1180 | :h3.TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->ModuleId | |
1181 | .*---------------------------------------------------------------------* | |
1182 | :xmp tab=0. | |
1183 | <TC - TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->ModuleId> | |
1184 | <COMPILE> | |
1185 | <VERDICT_LEAF PASS> | |
1186 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1187 | module ModuleA { | |
1188 | type set of Nonexi.MyType MyType2; | |
1189 | } | |
1190 | <END_MODULE> | |
1191 | <RESULT IF_PASS COUNT 1> | |
1192 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1193 | <END_RESULT> | |
1194 | <RESULT IF_PASS COUNT 1> | |
1195 | (?is)\berror: | |
1196 | <END_RESULT> | |
1197 | <RESULT IF_PASS POSITIVE> | |
1198 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1199 | <END_RESULT> | |
1200 | <END_TC> | |
1201 | :exmp. | |
1202 | ||
1203 | .*---------------------------------------------------------------------* | |
1204 | :h3.TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->Definition | |
1205 | .*---------------------------------------------------------------------* | |
1206 | :xmp tab=0. | |
1207 | <TC - TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->Definition> | |
1208 | <COMPILE> | |
1209 | <VERDICT_LEAF PASS> | |
1210 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1211 | module ModuleA { | |
1212 | type set of ModuleA.Nonexi MyType2; | |
1213 | } | |
1214 | <END_MODULE> | |
1215 | <RESULT IF_PASS COUNT 1> | |
1216 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1217 | <END_RESULT> | |
1218 | <RESULT IF_PASS COUNT 1> | |
1219 | (?is)\berror: | |
1220 | <END_RESULT> | |
1221 | <RESULT IF_PASS POSITIVE> | |
1222 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1223 | <END_RESULT> | |
1224 | <END_TC> | |
1225 | :exmp. | |
1226 | ||
1227 | .*---------------------------------------------------------------------* | |
1228 | :h3.TTCN-3::TypeDef->SetOfDef: ReferencedType->Field reference | |
1229 | .*---------------------------------------------------------------------* | |
1230 | :xmp tab=0. | |
1231 | <TC - TTCN-3::TypeDef->SetOfDef: ReferencedType->Field reference> | |
1232 | <COMPILE> | |
1233 | <VERDICT_LEAF PASS> | |
1234 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1235 | module ModuleA { | |
1236 | type record MyType_record { | |
1237 | boolean field1 | |
1238 | } | |
1239 | type set of MyType_record.Nonexi MyType2; | |
1240 | } | |
1241 | <END_MODULE> | |
1242 | <RESULT IF_PASS COUNT 1> | |
1243 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
1244 | <END_RESULT> | |
1245 | <RESULT IF_PASS COUNT 1> | |
1246 | (?is)\berror: | |
1247 | <END_RESULT> | |
1248 | <RESULT IF_PASS POSITIVE> | |
1249 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1250 | <END_RESULT> | |
1251 | <END_TC> | |
1252 | :exmp. | |
1253 | ||
1254 | .*---------------------------------------------------------------------* | |
1255 | :h3.TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue | |
1256 | .*---------------------------------------------------------------------* | |
1257 | :xmp tab=0. | |
1258 | <TC - TTCN-3::TypeDef->SetOfDef: ReferencedType->GlobalModuleId->ObjectIdentifierValue> | |
1259 | <COMPILE> | |
1260 | <VERDICT_LEAF FAIL> | |
1261 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1262 | module ModuleA { | |
1263 | type float MyType1; | |
1264 | type set of ModuleA.objid {0 4 Nonexi}.MyType1 MyType2; | |
1265 | } | |
1266 | <END_MODULE> | |
1267 | <RESULT IF_PASS COUNT 1> | |
1268 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1269 | <END_RESULT> | |
1270 | <RESULT IF_PASS COUNT 1> | |
1271 | (?is)\berror: | |
1272 | <END_RESULT> | |
1273 | <RESULT IF_PASS POSITIVE> | |
1274 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1275 | <END_RESULT> | |
1276 | <RESULT IF_FAIL NEGATIVE> | |
1277 | (?im)\berror\b | |
1278 | <END_RESULT> | |
1279 | <END_TC> | |
1280 | :exmp. | |
1281 | ||
1282 | .*---------------------------------------------------------------------* | |
1283 | :h3.TTCN-3::TypeDef->SetOfDef: AllowedValues | |
1284 | .*---------------------------------------------------------------------* | |
1285 | :xmp tab=0. | |
1286 | <TC - TTCN-3::TypeDef->SetOfDef: AllowedValues> | |
1287 | <COMPILE> | |
1288 | <VERDICT_LEAF PASS> | |
1289 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1290 | module ModuleA { | |
1291 | type set of integer MyType6 (666-Nonexi); | |
1292 | } | |
1293 | <END_MODULE> | |
1294 | <RESULT IF_PASS COUNT 1> | |
1295 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1296 | <END_RESULT> | |
1297 | <RESULT IF_PASS COUNT 1> | |
1298 | (?is)\berror: | |
1299 | <END_RESULT> | |
1300 | <RESULT IF_PASS POSITIVE> | |
1301 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1302 | <END_RESULT> | |
1303 | <END_TC> | |
1304 | :exmp. | |
1305 | ||
1306 | .*---------------------------------------------------------------------* | |
1307 | :h3.TTCN-3::TypeDef->SetOfDef: StringLength1 | |
1308 | .*---------------------------------------------------------------------* | |
1309 | :xmp tab=0. | |
1310 | <TC - TTCN-3::TypeDef->SetOfDef: StringLength1> | |
1311 | <COMPILE> | |
1312 | <VERDICT_LEAF PASS> | |
1313 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1314 | module ModuleA { | |
1315 | // StringLength | |
1316 | type record length(0..666-Nonexi) of integer MyType1; | |
1317 | } | |
1318 | <END_MODULE> | |
1319 | <RESULT IF_PASS COUNT 1> | |
1320 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1321 | <END_RESULT> | |
1322 | <RESULT IF_PASS COUNT 1> | |
1323 | (?is)\berror: | |
1324 | <END_RESULT> | |
1325 | <RESULT IF_PASS POSITIVE> | |
1326 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1327 | <END_RESULT> | |
1328 | <END_TC> | |
1329 | :exmp. | |
1330 | ||
1331 | .*---------------------------------------------------------------------* | |
1332 | :h3.TTCN-3::TypeDef->SetOfDef: StringLength2 | |
1333 | .*---------------------------------------------------------------------* | |
1334 | :xmp tab=0. | |
1335 | <TC - TTCN-3::TypeDef->SetOfDef: StringLength2> | |
1336 | <COMPILE> | |
1337 | <VERDICT_LEAF PASS> | |
1338 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1339 | module ModuleA { | |
1340 | // TR 623: length restriction of charstrings | |
1341 | type set of charstring MyType7 length(0..666-Nonexi); | |
1342 | } | |
1343 | <END_MODULE> | |
1344 | <RESULT IF_PASS COUNT 1> | |
1345 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1346 | <END_RESULT> | |
1347 | <RESULT IF_PASS COUNT 1> | |
1348 | (?is)\berror: | |
1349 | <END_RESULT> | |
1350 | <RESULT IF_PASS POSITIVE> | |
1351 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1352 | <END_RESULT> | |
1353 | <END_TC> | |
1354 | :exmp. | |
1355 | ||
1356 | .*---------------------------------------------------------------------* | |
1357 | :h3.TTCN-3::TypeDef->Field References: Record->Module definition part | |
1358 | .*---------------------------------------------------------------------* | |
1359 | :xmp tab=0. | |
1360 | <TC - TTCN-3::TypeDef->Field References: Record->Module definition part> | |
1361 | <COMPILE> | |
1362 | <VERDICT_LEAF PASS> | |
1363 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1364 | module ModuleA { | |
1365 | type record MyType_record { | |
1366 | boolean field1 optional, | |
1367 | boolean field2 optional | |
1368 | } | |
1369 | const MyType_record MyConst_record := { field1 := false, field2 := true, nonexi := 666 } | |
1370 | } | |
1371 | <END_MODULE> | |
1372 | <RESULT IF_PASS COUNT 1> | |
1373 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1374 | <END_RESULT> | |
1375 | <RESULT IF_PASS COUNT 1> | |
1376 | (?is)\berror: | |
1377 | <END_RESULT> | |
1378 | <RESULT IF_PASS POSITIVE> | |
1379 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1380 | <END_RESULT> | |
1381 | <END_TC> | |
1382 | :exmp. | |
1383 | ||
1384 | .*---------------------------------------------------------------------* | |
1385 | :h3.TTCN-3::TypeDef->Field References: Record->In component definition | |
1386 | .*---------------------------------------------------------------------* | |
1387 | :xmp tab=0. | |
1388 | <TC - TTCN-3::TypeDef->Field References: Record->In component definition> | |
1389 | <COMPILE> | |
1390 | <VERDICT_LEAF PASS> | |
1391 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1392 | module ModuleA { | |
1393 | type record MyType_record { | |
1394 | boolean field1 optional, | |
1395 | boolean field2 optional | |
1396 | } | |
1397 | type component MyComp { | |
1398 | var MyType_record MyConst_record := { field1 := false, field2 := true, nonexi := 666 } | |
1399 | } | |
1400 | } | |
1401 | <END_MODULE> | |
1402 | <RESULT IF_PASS COUNT 1> | |
1403 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1404 | <END_RESULT> | |
1405 | <RESULT IF_PASS COUNT 1> | |
1406 | (?is)\berror: | |
1407 | <END_RESULT> | |
1408 | <RESULT IF_PASS POSITIVE> | |
1409 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1410 | <END_RESULT> | |
1411 | <END_TC> | |
1412 | :exmp. | |
1413 | ||
1414 | .*---------------------------------------------------------------------* | |
1415 | :h3.TTCN-3::TypeDef->Field References: Record->In statement block | |
1416 | .*---------------------------------------------------------------------* | |
1417 | :xmp tab=0. | |
1418 | <TC - TTCN-3::TypeDef->Field References: Record->In statement block> | |
1419 | <COMPILE> | |
1420 | <VERDICT_LEAF PASS> | |
1421 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1422 | module ModuleA { | |
1423 | type record MyType_record { | |
1424 | boolean field1 optional, | |
1425 | boolean field2 optional | |
1426 | } | |
1427 | function MyFunc1() { | |
1428 | var MyType_record MyWar_record := { field1 := false, field2 := true, nonexi := 666 } | |
1429 | } | |
1430 | } | |
1431 | <END_MODULE> | |
1432 | <RESULT IF_PASS COUNT 1> | |
1433 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1434 | <END_RESULT> | |
1435 | <RESULT IF_PASS COUNT 1> | |
1436 | (?is)\berror: | |
1437 | <END_RESULT> | |
1438 | <RESULT IF_PASS POSITIVE> | |
1439 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1440 | <END_RESULT> | |
1441 | <END_TC> | |
1442 | :exmp. | |
1443 | ||
1444 | .*---------------------------------------------------------------------* | |
1445 | :h3.TTCN-3::TypeDef->Field References: Record->In control part | |
1446 | .*---------------------------------------------------------------------* | |
1447 | :xmp tab=0. | |
1448 | <TC - TTCN-3::TypeDef->Field References: Record->In control part> | |
1449 | <COMPILE> | |
1450 | <VERDICT_LEAF PASS> | |
1451 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1452 | module ModuleA { | |
1453 | type record MyType_record { | |
1454 | boolean field1 optional, | |
1455 | boolean field2 optional | |
1456 | } | |
1457 | control { | |
1458 | var MyType_record MyWar_record := { field1 := false, field2 := true, nonexi := 666 } | |
1459 | } | |
1460 | } | |
1461 | <END_MODULE> | |
1462 | <RESULT IF_PASS COUNT 1> | |
1463 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1464 | <END_RESULT> | |
1465 | <RESULT IF_PASS COUNT 1> | |
1466 | (?is)\berror: | |
1467 | <END_RESULT> | |
1468 | <RESULT IF_PASS POSITIVE> | |
1469 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1470 | <END_RESULT> | |
1471 | <END_TC> | |
1472 | :exmp. | |
1473 | ||
1474 | .*---------------------------------------------------------------------* | |
1475 | :h3.TTCN-3::TypeDef->Field References: Set->Module definition part | |
1476 | .*---------------------------------------------------------------------* | |
1477 | :xmp tab=0. | |
1478 | <TC - TTCN-3::TypeDef->Field References: Set->Module definition part> | |
1479 | <COMPILE> | |
1480 | <VERDICT_LEAF PASS> | |
1481 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1482 | module ModuleA { | |
1483 | type set MyType_set { | |
1484 | boolean field1 optional, | |
1485 | boolean field2 optional | |
1486 | } | |
1487 | const MyType_set MyConst_set := { field1 := false, field2 := true, nonexi := 666 } | |
1488 | } | |
1489 | <END_MODULE> | |
1490 | <RESULT IF_PASS COUNT 1> | |
1491 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1492 | <END_RESULT> | |
1493 | <RESULT IF_PASS COUNT 1> | |
1494 | (?is)\berror: | |
1495 | <END_RESULT> | |
1496 | <RESULT IF_PASS POSITIVE> | |
1497 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1498 | <END_RESULT> | |
1499 | <END_TC> | |
1500 | :exmp. | |
1501 | ||
1502 | .*---------------------------------------------------------------------* | |
1503 | :h3.TTCN-3::TypeDef->Field References: Set->In component definition | |
1504 | .*---------------------------------------------------------------------* | |
1505 | :xmp tab=0. | |
1506 | <TC - TTCN-3::TypeDef->Field References: Set->In component definition> | |
1507 | <COMPILE> | |
1508 | <VERDICT_LEAF PASS> | |
1509 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1510 | module ModuleA { | |
1511 | type set MyType_set { | |
1512 | boolean field1 optional, | |
1513 | boolean field2 optional | |
1514 | } | |
1515 | type component MyComp { | |
1516 | var MyType_set MyConst_set := { field1 := false, field2 := true, nonexi := 666 } | |
1517 | } | |
1518 | } | |
1519 | <END_MODULE> | |
1520 | <RESULT IF_PASS COUNT 1> | |
1521 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1522 | <END_RESULT> | |
1523 | <RESULT IF_PASS COUNT 1> | |
1524 | (?is)\berror: | |
1525 | <END_RESULT> | |
1526 | <RESULT IF_PASS POSITIVE> | |
1527 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1528 | <END_RESULT> | |
1529 | <END_TC> | |
1530 | :exmp. | |
1531 | ||
1532 | .*---------------------------------------------------------------------* | |
1533 | :h3.TTCN-3::TypeDef->Field References: Set->In statement block | |
1534 | .*---------------------------------------------------------------------* | |
1535 | :xmp tab=0. | |
1536 | <TC - TTCN-3::TypeDef->Field References: Set->In statement block> | |
1537 | <COMPILE> | |
1538 | <VERDICT_LEAF PASS> | |
1539 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1540 | module ModuleA { | |
1541 | type set MyType_set { | |
1542 | boolean field1 optional, | |
1543 | boolean field2 optional | |
1544 | } | |
1545 | function MyFunc1() { | |
1546 | var MyType_set MyWar_set := { field1 := false, field2 := true, nonexi := 666 } | |
1547 | } | |
1548 | } | |
1549 | <END_MODULE> | |
1550 | <RESULT IF_PASS COUNT 1> | |
1551 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1552 | <END_RESULT> | |
1553 | <RESULT IF_PASS COUNT 1> | |
1554 | (?is)\berror: | |
1555 | <END_RESULT> | |
1556 | <RESULT IF_PASS POSITIVE> | |
1557 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1558 | <END_RESULT> | |
1559 | <END_TC> | |
1560 | :exmp. | |
1561 | ||
1562 | .*---------------------------------------------------------------------* | |
1563 | :h3.TTCN-3::TypeDef->Field References: Set->In control part | |
1564 | .*---------------------------------------------------------------------* | |
1565 | :xmp tab=0. | |
1566 | <TC - TTCN-3::TypeDef->Field References: Set->In control part> | |
1567 | <COMPILE> | |
1568 | <VERDICT_LEAF PASS> | |
1569 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1570 | module ModuleA { | |
1571 | type set MyType_set { | |
1572 | boolean field1 optional, | |
1573 | boolean field2 optional | |
1574 | } | |
1575 | control { | |
1576 | var MyType_set MyWar_set := { field1 := false, field2 := true, nonexi := 666 } | |
1577 | } | |
1578 | } | |
1579 | <END_MODULE> | |
1580 | <RESULT IF_PASS COUNT 1> | |
1581 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1582 | <END_RESULT> | |
1583 | <RESULT IF_PASS COUNT 1> | |
1584 | (?is)\berror: | |
1585 | <END_RESULT> | |
1586 | <RESULT IF_PASS POSITIVE> | |
1587 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1588 | <END_RESULT> | |
1589 | <END_TC> | |
1590 | :exmp. | |
1591 | ||
1592 | .*---------------------------------------------------------------------* | |
1593 | :h3.TTCN-3::TypeDef->Field References: Union->Module definition part | |
1594 | .*---------------------------------------------------------------------* | |
1595 | :xmp tab=0. | |
1596 | <TC - TTCN-3::TypeDef->Field References: Union->Module definition part> | |
1597 | <COMPILE> | |
1598 | <VERDICT_LEAF PASS> | |
1599 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1600 | module ModuleA { | |
1601 | type union MyType_union { | |
1602 | boolean field1, | |
1603 | boolean field2 | |
1604 | } | |
1605 | const MyType_union MyConst_union := { nonexi := 666 } | |
1606 | } | |
1607 | <END_MODULE> | |
1608 | <RESULT IF_PASS COUNT 1> | |
1609 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1610 | <END_RESULT> | |
1611 | <RESULT IF_PASS COUNT 1> | |
1612 | (?is)\berror: | |
1613 | <END_RESULT> | |
1614 | <RESULT IF_PASS POSITIVE> | |
1615 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1616 | <END_RESULT> | |
1617 | <END_TC> | |
1618 | :exmp. | |
1619 | ||
1620 | .*---------------------------------------------------------------------* | |
1621 | :h3.TTCN-3::TypeDef->Field References: Union->In component definition | |
1622 | .*---------------------------------------------------------------------* | |
1623 | :xmp tab=0. | |
1624 | <TC - TTCN-3::TypeDef->Field References: Union->In component definition> | |
1625 | <COMPILE> | |
1626 | <VERDICT_LEAF PASS> | |
1627 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1628 | module ModuleA { | |
1629 | type union MyType_union { | |
1630 | boolean field1, | |
1631 | boolean field2 | |
1632 | } | |
1633 | type component MyComp { | |
1634 | var MyType_union MyConst_union := { nonexi := 666 } | |
1635 | } | |
1636 | } | |
1637 | <END_MODULE> | |
1638 | <RESULT IF_PASS COUNT 1> | |
1639 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1640 | <END_RESULT> | |
1641 | <RESULT IF_PASS COUNT 1> | |
1642 | (?is)\berror: | |
1643 | <END_RESULT> | |
1644 | <RESULT IF_PASS POSITIVE> | |
1645 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1646 | <END_RESULT> | |
1647 | <END_TC> | |
1648 | :exmp. | |
1649 | ||
1650 | .*---------------------------------------------------------------------* | |
1651 | :h3.TTCN-3::TypeDef->Field References: Union->In statement block | |
1652 | .*---------------------------------------------------------------------* | |
1653 | :xmp tab=0. | |
1654 | <TC - TTCN-3::TypeDef->Field References: Union->In statement block> | |
1655 | <COMPILE> | |
1656 | <VERDICT_LEAF PASS> | |
1657 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1658 | module ModuleA { | |
1659 | type union MyType_union { | |
1660 | boolean field1, | |
1661 | boolean field2 | |
1662 | } | |
1663 | function MyFunc1() { | |
1664 | var MyType_union MyWar_union := { nonexi := 666 } | |
1665 | } | |
1666 | } | |
1667 | <END_MODULE> | |
1668 | <RESULT IF_PASS COUNT 1> | |
1669 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1670 | <END_RESULT> | |
1671 | <RESULT IF_PASS COUNT 1> | |
1672 | (?is)\berror: | |
1673 | <END_RESULT> | |
1674 | <RESULT IF_PASS POSITIVE> | |
1675 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1676 | <END_RESULT> | |
1677 | <END_TC> | |
1678 | :exmp. | |
1679 | ||
1680 | .*---------------------------------------------------------------------* | |
1681 | :h3.TTCN-3::TypeDef->Field References: Union->In control part | |
1682 | .*---------------------------------------------------------------------* | |
1683 | :xmp tab=0. | |
1684 | <TC - TTCN-3::TypeDef->Field References: Union->In control part> | |
1685 | <COMPILE> | |
1686 | <VERDICT_LEAF PASS> | |
1687 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1688 | module ModuleA { | |
1689 | type union MyType_union { | |
1690 | boolean field1, | |
1691 | boolean field2 | |
1692 | } | |
1693 | control { | |
1694 | var MyType_union MyWar_union := { nonexi := 666 } | |
1695 | } | |
1696 | } | |
1697 | <END_MODULE> | |
1698 | <RESULT IF_PASS COUNT 1> | |
1699 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi | |
1700 | <END_RESULT> | |
1701 | <RESULT IF_PASS COUNT 1> | |
1702 | (?is)\berror: | |
1703 | <END_RESULT> | |
1704 | <RESULT IF_PASS POSITIVE> | |
1705 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1706 | <END_RESULT> | |
1707 | <END_TC> | |
1708 | :exmp. | |
1709 | ||
1710 | .*---------------------------------------------------------------------* | |
1711 | :h3.TTCN-3::TypeDef->Field References: Enumerated->Module definition part | |
1712 | .*---------------------------------------------------------------------* | |
1713 | :xmp tab=0. | |
1714 | <TC - TTCN-3::TypeDef->Field References: Enumerated->Module definition part> | |
1715 | <COMPILE> | |
1716 | <VERDICT_LEAF PASS> | |
1717 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1718 | module ModuleA { | |
1719 | type enumerated MyType_enumerated { Doom(0), Doom2(1) } | |
1720 | const MyType_enumerated MyConst_enumerated := nonexi; | |
1721 | } | |
1722 | <END_MODULE> | |
1723 | <RESULT IF_PASS COUNT 1> | |
1724 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1725 | <END_RESULT> | |
1726 | <RESULT IF_PASS COUNT 1> | |
1727 | (?is)\berror: | |
1728 | <END_RESULT> | |
1729 | <RESULT IF_PASS POSITIVE> | |
1730 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1731 | <END_RESULT> | |
1732 | <END_TC> | |
1733 | :exmp. | |
1734 | ||
1735 | .*---------------------------------------------------------------------* | |
1736 | :h3.TTCN-3::TypeDef->Field References: Enumerated->In component definition | |
1737 | .*---------------------------------------------------------------------* | |
1738 | :xmp tab=0. | |
1739 | <TC - TTCN-3::TypeDef->Field References: Enumerated->In component definition> | |
1740 | <COMPILE> | |
1741 | <VERDICT_LEAF PASS> | |
1742 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1743 | module ModuleA { | |
1744 | type enumerated MyType_enumerated { Doom(0), Doom2(1) } | |
1745 | type component MyComp { | |
1746 | var MyType_enumerated MyConst_enumerated := nonexi; | |
1747 | } | |
1748 | } | |
1749 | <END_MODULE> | |
1750 | <RESULT IF_PASS COUNT 1> | |
1751 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1752 | <END_RESULT> | |
1753 | <RESULT IF_PASS COUNT 1> | |
1754 | (?is)\berror: | |
1755 | <END_RESULT> | |
1756 | <RESULT IF_PASS POSITIVE> | |
1757 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1758 | <END_RESULT> | |
1759 | <END_TC> | |
1760 | :exmp. | |
1761 | ||
1762 | .*---------------------------------------------------------------------* | |
1763 | :h3.TTCN-3::TypeDef->Field References: Enumerated->In statement block | |
1764 | .*---------------------------------------------------------------------* | |
1765 | :xmp tab=0. | |
1766 | <TC - TTCN-3::TypeDef->Field References: Enumerated->In statement block> | |
1767 | <COMPILE> | |
1768 | <VERDICT_LEAF PASS> | |
1769 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1770 | module ModuleA { | |
1771 | type enumerated MyType_enumerated { Doom(0), Doom2(1) } | |
1772 | function MyFunc1() { | |
1773 | var MyType_enumerated MyConst_enumerated := nonexi; | |
1774 | } | |
1775 | } | |
1776 | <END_MODULE> | |
1777 | <RESULT IF_PASS COUNT 1> | |
1778 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1779 | <END_RESULT> | |
1780 | <RESULT IF_PASS COUNT 1> | |
1781 | (?is)\berror: | |
1782 | <END_RESULT> | |
1783 | <RESULT IF_PASS POSITIVE> | |
1784 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1785 | <END_RESULT> | |
1786 | <END_TC> | |
1787 | :exmp. | |
1788 | ||
1789 | .*---------------------------------------------------------------------* | |
1790 | :h3.TTCN-3::TypeDef->Field References: Enumerated->In control part | |
1791 | .*---------------------------------------------------------------------* | |
1792 | :xmp tab=0. | |
1793 | <TC - TTCN-3::TypeDef->Field References: Enumerated->In control part> | |
1794 | <COMPILE> | |
1795 | <VERDICT_LEAF PASS> | |
1796 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1797 | module ModuleA { | |
1798 | type enumerated MyType_enumerated { Doom(0), Doom2(1) } | |
1799 | control { | |
1800 | var MyType_enumerated MyConst_enumerated := nonexi; | |
1801 | } | |
1802 | } | |
1803 | <END_MODULE> | |
1804 | <RESULT IF_PASS COUNT 1> | |
1805 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1806 | <END_RESULT> | |
1807 | <RESULT IF_PASS COUNT 1> | |
1808 | (?is)\berror: | |
1809 | <END_RESULT> | |
1810 | <RESULT IF_PASS POSITIVE> | |
1811 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1812 | <END_RESULT> | |
1813 | <END_TC> | |
1814 | :exmp. | |
1815 | ||
1816 | .*---------------------------------------------------------------------* | |
1817 | :h3.TTCN-3::TypeDef->PortDef: PortDefAttribs->MessageAttribs->Type | |
1818 | .*---------------------------------------------------------------------* | |
1819 | :xmp tab=0. | |
1820 | <TC - TTCN-3::TypeDef->PortDef: PortDefAttribs->MessageAttribs->Type> | |
1821 | <COMPILE> | |
1822 | <VERDICT_LEAF PASS> | |
1823 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1824 | module ModuleA { | |
1825 | // TR 624: reporting errors in typelists | |
1826 | type port MyPort1 message { inout Nonexi01, Nonexi02 } | |
1827 | } | |
1828 | <END_MODULE> | |
1829 | <RESULT IF_PASS COUNT 2> | |
1830 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1831 | <END_RESULT> | |
1832 | <RESULT IF_PASS COUNT 2> | |
1833 | (?is)\berror: | |
1834 | <END_RESULT> | |
1835 | <RESULT IF_PASS POSITIVE> | |
1836 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1837 | <END_RESULT> | |
1838 | <END_TC> | |
1839 | :exmp. | |
1840 | ||
1841 | .*---------------------------------------------------------------------* | |
1842 | :h3.TTCN-3::TypeDef->PortDef: PortDefAttribs->ProcedureAttribs | |
1843 | .*---------------------------------------------------------------------* | |
1844 | :xmp tab=0. | |
1845 | <TC - TTCN-3::TypeDef->PortDef: PortDefAttribs->ProcedureAttribs> | |
1846 | <COMPILE> | |
1847 | <VERDICT_LEAF PASS> | |
1848 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1849 | module ModuleA { | |
1850 | // TR 624: reporting errors in typelists | |
1851 | type port MyPort1 procedure { inout Nonexi01, Nonexi02 } | |
1852 | } | |
1853 | <END_MODULE> | |
1854 | <RESULT IF_PASS COUNT 2> | |
1855 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1856 | <END_RESULT> | |
1857 | <RESULT IF_PASS COUNT 2> | |
1858 | (?is)\berror: | |
1859 | <END_RESULT> | |
1860 | <RESULT IF_PASS POSITIVE> | |
1861 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1862 | <END_RESULT> | |
1863 | <END_TC> | |
1864 | :exmp. | |
1865 | ||
1866 | .*---------------------------------------------------------------------* | |
1867 | :h3.TTCN-3::TypeDef->PortDef: PortDefAttribs->MixedAttribs | |
1868 | .*---------------------------------------------------------------------* | |
1869 | :xmp tab=0. | |
1870 | <TC - TTCN-3::TypeDef->PortDef: PortDefAttribs->MixedAttribs> | |
1871 | <COMPILE> | |
1872 | <VERDICT_LEAF PASS> | |
1873 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1874 | module ModuleA { | |
1875 | // TR 621: limitation on mixed ports should be mentioned in user guide | |
1876 | type port MyPort1 mixed { inout Nonexi01, Nonexi02 } | |
1877 | } | |
1878 | <END_MODULE> | |
1879 | <RESULT IF_PASS COUNT 2> | |
1880 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1881 | <END_RESULT> | |
1882 | <RESULT IF_PASS COUNT 2> | |
1883 | (?is)\berror: | |
1884 | <END_RESULT> | |
1885 | <RESULT IF_PASS POSITIVE> | |
1886 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1887 | <END_RESULT> | |
1888 | <END_TC> | |
1889 | :exmp. | |
1890 | ||
1891 | .*---------------------------------------------------------------------* | |
1892 | :h3.TTCN-3::TypeDef->ComponentDef: PortInstance->PortType | |
1893 | .*---------------------------------------------------------------------* | |
1894 | :xmp tab=0. | |
1895 | <TC - TTCN-3::TypeDef->ComponentDef: PortInstance->PortType> | |
1896 | <COMPILE> | |
1897 | <VERDICT_LEAF PASS> | |
1898 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1899 | module ModuleA { | |
1900 | type port MyPortType message { inout integer } | |
1901 | type component MyComp1 { port Nonexi MyPort } | |
1902 | } | |
1903 | <END_MODULE> | |
1904 | <RESULT IF_PASS COUNT 1> | |
1905 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1906 | <END_RESULT> | |
1907 | <RESULT IF_PASS COUNT 1> | |
1908 | (?is)\berror: | |
1909 | <END_RESULT> | |
1910 | <RESULT IF_PASS POSITIVE> | |
1911 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1912 | <END_RESULT> | |
1913 | <END_TC> | |
1914 | :exmp. | |
1915 | ||
1916 | .*---------------------------------------------------------------------* | |
1917 | :h3.TTCN-3::TypeDef->ComponentDef: PortInstance->PortType->ArrayDef: 1 Dimensional | |
1918 | .*---------------------------------------------------------------------* | |
1919 | :xmp tab=0. | |
1920 | <TC - TTCN-3::TypeDef->ComponentDef: PortInstance->PortType->ArrayDef: 1 Dimensional> | |
1921 | <COMPILE> | |
1922 | <VERDICT_LEAF PASS> | |
1923 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1924 | module ModuleA { | |
1925 | type port MyPortType message { inout integer } | |
1926 | // TR 625: consistent checking of array dimensions | |
1927 | type component MyComp5 { port MyPortType MyPort[200-Nonexi] } | |
1928 | } | |
1929 | <END_MODULE> | |
1930 | <RESULT IF_PASS COUNT 1> | |
1931 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1932 | <END_RESULT> | |
1933 | <RESULT IF_PASS COUNT 1> | |
1934 | (?is)\berror: | |
1935 | <END_RESULT> | |
1936 | <RESULT IF_PASS POSITIVE> | |
1937 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1938 | <END_RESULT> | |
1939 | <END_TC> | |
1940 | :exmp. | |
1941 | ||
1942 | .*---------------------------------------------------------------------* | |
1943 | :h3.TTCN-3::TypeDef->ComponentDef: PortInstance->PortType->ArrayDef: 4 Dimensional | |
1944 | .*---------------------------------------------------------------------* | |
1945 | :xmp tab=0. | |
1946 | <TC - TTCN-3::TypeDef->ComponentDef: PortInstance->PortType->ArrayDef: 4 Dimensional> | |
1947 | <COMPILE> | |
1948 | <VERDICT_LEAF PASS> | |
1949 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1950 | module ModuleA { | |
1951 | type port MyPortType message { inout integer } | |
1952 | // TR 625: consistent checking of array dimensions | |
1953 | type component MyComp5 { port MyPortType MyPort[11][666][17+666][200-Nonexi] } | |
1954 | } | |
1955 | <END_MODULE> | |
1956 | <RESULT IF_PASS COUNT 1> | |
1957 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1958 | <END_RESULT> | |
1959 | <RESULT IF_PASS COUNT 1> | |
1960 | (?is)\berror: | |
1961 | <END_RESULT> | |
1962 | <RESULT IF_PASS POSITIVE> | |
1963 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1964 | <END_RESULT> | |
1965 | <END_TC> | |
1966 | :exmp. | |
1967 | ||
1968 | .*---------------------------------------------------------------------* | |
1969 | :h3.TTCN-3::TypeDef->ComponentDef: VarInstance->VarType | |
1970 | .*---------------------------------------------------------------------* | |
1971 | :xmp tab=0. | |
1972 | <TC - TTCN-3::TypeDef->ComponentDef: VarInstance->VarType> | |
1973 | <COMPILE> | |
1974 | <VERDICT_LEAF PASS> | |
1975 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
1976 | module ModuleA { | |
1977 | type component MyComp7 { var Nonexi07 MyVar } | |
1978 | } | |
1979 | <END_MODULE> | |
1980 | <RESULT IF_PASS COUNT 1> | |
1981 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
1982 | <END_RESULT> | |
1983 | <RESULT IF_PASS COUNT 1> | |
1984 | (?is)\berror: | |
1985 | <END_RESULT> | |
1986 | <RESULT IF_PASS POSITIVE> | |
1987 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
1988 | <END_RESULT> | |
1989 | <END_TC> | |
1990 | :exmp. | |
1991 | ||
1992 | .*---------------------------------------------------------------------* | |
1993 | :h3.TTCN-3::TypeDef->ComponentDef: VarInstance->ArrayDef: 1 Dimensional | |
1994 | .*---------------------------------------------------------------------* | |
1995 | :xmp tab=0. | |
1996 | <TC - TTCN-3::TypeDef->ComponentDef: VarInstance->ArrayDef: 1 Dimensional> | |
1997 | <COMPILE> | |
1998 | <VERDICT_LEAF PASS> | |
1999 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2000 | module ModuleA { | |
2001 | // TR 608: More than one error message is shown for a situation | |
2002 | type component MyComp11 { var integer MyVar[200-Nonexi] } | |
2003 | } | |
2004 | <END_MODULE> | |
2005 | <RESULT IF_PASS COUNT 1> | |
2006 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2007 | <END_RESULT> | |
2008 | <RESULT IF_PASS COUNT 1> | |
2009 | (?is)\berror: | |
2010 | <END_RESULT> | |
2011 | <RESULT IF_PASS POSITIVE> | |
2012 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2013 | <END_RESULT> | |
2014 | <RESULT IF_FAIL COUNT 1> | |
2015 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2016 | <END_RESULT> | |
2017 | <RESULT IF_FAIL COUNT 1> | |
2018 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2019 | <END_RESULT> | |
2020 | <RESULT IF_FAIL COUNT 2> | |
2021 | (?is)\berror: | |
2022 | <END_RESULT> | |
2023 | <RESULT IF_FAIL POSITIVE> | |
2024 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2025 | <END_RESULT> | |
2026 | <END_TC> | |
2027 | :exmp. | |
2028 | ||
2029 | .*---------------------------------------------------------------------* | |
2030 | :h3.TTCN-3::TypeDef->ComponentDef: VarInstance->ArrayDef: 4 Dimensional | |
2031 | .*---------------------------------------------------------------------* | |
2032 | :xmp tab=0. | |
2033 | <TC - TTCN-3::TypeDef->ComponentDef: VarInstance->ArrayDef: 4 Dimensional> | |
2034 | <COMPILE> | |
2035 | <VERDICT_LEAF PASS> | |
2036 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2037 | module ModuleA { | |
2038 | // TR 608: More than one error message is shown for a situation | |
2039 | type component MyComp12 { var integer MyVar[11][666][17+666][200-Nonexi12] } | |
2040 | } | |
2041 | <END_MODULE> | |
2042 | <RESULT IF_PASS COUNT 1> | |
2043 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2044 | <END_RESULT> | |
2045 | <RESULT IF_PASS COUNT 1> | |
2046 | (?is)\berror: | |
2047 | <END_RESULT> | |
2048 | <RESULT IF_PASS POSITIVE> | |
2049 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2050 | <END_RESULT> | |
2051 | <RESULT IF_FAIL COUNT 1> | |
2052 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2053 | <END_RESULT> | |
2054 | <RESULT IF_FAIL COUNT 1> | |
2055 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2056 | <END_RESULT> | |
2057 | <RESULT IF_FAIL COUNT 2> | |
2058 | (?is)\berror: | |
2059 | <END_RESULT> | |
2060 | <RESULT IF_FAIL POSITIVE> | |
2061 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2062 | <END_RESULT> | |
2063 | <END_TC> | |
2064 | :exmp. | |
2065 | ||
2066 | .*---------------------------------------------------------------------* | |
2067 | :h3.TTCN-3::TypeDef->ComponentDef: VarInstance->VarInitialValue | |
2068 | .*---------------------------------------------------------------------* | |
2069 | :xmp tab=0. | |
2070 | <TC - TTCN-3::TypeDef->ComponentDef: VarInstance->VarInitialValue> | |
2071 | <COMPILE> | |
2072 | <VERDICT_LEAF PASS> | |
2073 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2074 | module ModuleA { | |
2075 | type component MyComp13 { var integer MyVar := 1+2+3+Nonexi13; } | |
2076 | } | |
2077 | <END_MODULE> | |
2078 | <RESULT IF_PASS COUNT 1> | |
2079 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2080 | <END_RESULT> | |
2081 | <RESULT IF_PASS COUNT 1> | |
2082 | (?is)\berror: | |
2083 | <END_RESULT> | |
2084 | <RESULT IF_PASS POSITIVE> | |
2085 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2086 | <END_RESULT> | |
2087 | <END_TC> | |
2088 | :exmp. | |
2089 | ||
2090 | .*---------------------------------------------------------------------* | |
2091 | :h3.TTCN-3::TypeDef->ComponentDef: TimerInstance: 1 Dimensional | |
2092 | .*---------------------------------------------------------------------* | |
2093 | :xmp tab=0. | |
2094 | <TC - TTCN-3::TypeDef->ComponentDef: TimerInstance: 1 Dimensional> | |
2095 | <COMPILE> | |
2096 | <VERDICT_LEAF PASS> | |
2097 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2098 | module ModuleA { | |
2099 | type component MyComp14 { timer MyTimer[666-Nonexi14] := { 1.0, 2.0, 3.0, 4.0 } } | |
2100 | } | |
2101 | <END_MODULE> | |
2102 | <RESULT IF_PASS COUNT 1> | |
2103 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2104 | <END_RESULT> | |
2105 | <RESULT IF_PASS COUNT 1> | |
2106 | (?is)\berror: | |
2107 | <END_RESULT> | |
2108 | <RESULT IF_PASS POSITIVE> | |
2109 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2110 | <END_RESULT> | |
2111 | <END_TC> | |
2112 | :exmp. | |
2113 | ||
2114 | .*---------------------------------------------------------------------* | |
2115 | :h3.TTCN-3::TypeDef->ComponentDef: TimerInstance: 4 Dimensional | |
2116 | .*---------------------------------------------------------------------* | |
2117 | :xmp tab=0. | |
2118 | <TC - TTCN-3::TypeDef->ComponentDef: TimerInstance: 4 Dimensional> | |
2119 | <COMPILE> | |
2120 | <VERDICT_LEAF PASS> | |
2121 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2122 | module ModuleA { | |
2123 | type component MyComp14 { | |
2124 | timer MyTimer[1][1][1][666-Nonexi14] := {{{ { 1.0, 2.0, 3.0, 4.0, -, -, 1.0 } }}} | |
2125 | } | |
2126 | } | |
2127 | <END_MODULE> | |
2128 | <RESULT IF_PASS COUNT 1> | |
2129 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2130 | <END_RESULT> | |
2131 | <RESULT IF_PASS COUNT 1> | |
2132 | (?is)\berror: | |
2133 | <END_RESULT> | |
2134 | <RESULT IF_PASS POSITIVE> | |
2135 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2136 | <END_RESULT> | |
2137 | <END_TC> | |
2138 | :exmp. | |
2139 | ||
2140 | .*---------------------------------------------------------------------* | |
2141 | :h3.TTCN-3::TypeDef->ComponentDef: ConstDef->TypeDef | |
2142 | .*---------------------------------------------------------------------* | |
2143 | :xmp tab=0. | |
2144 | <TC - TTCN-3::TypeDef->ComponentDef: ConstDef->TypeDef> | |
2145 | <COMPILE> | |
2146 | <VERDICT_LEAF PASS> | |
2147 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2148 | module ModuleA { | |
2149 | type component MyComp17 { const Nonexi17 MyConst := 666; } | |
2150 | } | |
2151 | <END_MODULE> | |
2152 | <RESULT IF_PASS COUNT 1> | |
2153 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2154 | <END_RESULT> | |
2155 | <RESULT IF_PASS COUNT 1> | |
2156 | (?is)\berror: | |
2157 | <END_RESULT> | |
2158 | <RESULT IF_PASS POSITIVE> | |
2159 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2160 | <END_RESULT> | |
2161 | <END_TC> | |
2162 | :exmp. | |
2163 | ||
2164 | .*---------------------------------------------------------------------* | |
2165 | :h3.TTCN-3::TypeDef->ComponentDef: ConstDef->Value | |
2166 | .*---------------------------------------------------------------------* | |
2167 | :xmp tab=0. | |
2168 | <TC - TTCN-3::TypeDef->ComponentDef: ConstDef->Value> | |
2169 | <COMPILE> | |
2170 | <VERDICT_LEAF PASS> | |
2171 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2172 | module ModuleA { | |
2173 | type component MyComp17 { const integer MyConst := 666-Nonexi18; } | |
2174 | } | |
2175 | <END_MODULE> | |
2176 | <RESULT IF_PASS COUNT 1> | |
2177 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2178 | <END_RESULT> | |
2179 | <RESULT IF_PASS COUNT 1> | |
2180 | (?is)\berror: | |
2181 | <END_RESULT> | |
2182 | <RESULT IF_PASS POSITIVE> | |
2183 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2184 | <END_RESULT> | |
2185 | <END_TC> | |
2186 | :exmp. | |
2187 | ||
2188 | .*---------------------------------------------------------------------* | |
2189 | :h3.TTCN-3::TypeDef->ComponentDef: ConstDef: 1 Dimensional | |
2190 | .*---------------------------------------------------------------------* | |
2191 | :xmp tab=0. | |
2192 | <TC - TTCN-3::TypeDef->ComponentDef: ConstDef: 1 Dimensional> | |
2193 | <COMPILE> | |
2194 | <VERDICT_LEAF PASS> | |
2195 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2196 | module ModuleA { | |
2197 | // TR 608: More than one error message is shown for a situation | |
2198 | type component MyComp18 { const integer MyConst[666-Nonexi19] := {1,2,3,4,666-18}; } | |
2199 | } | |
2200 | <END_MODULE> | |
2201 | <RESULT IF_PASS COUNT 1> | |
2202 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2203 | <END_RESULT> | |
2204 | <RESULT IF_PASS COUNT 1> | |
2205 | (?is)\berror: | |
2206 | <END_RESULT> | |
2207 | <RESULT IF_PASS POSITIVE> | |
2208 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2209 | <END_RESULT> | |
2210 | <RESULT IF_FAIL COUNT 1> | |
2211 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2212 | <END_RESULT> | |
2213 | <RESULT IF_FAIL COUNT 1> | |
2214 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2215 | <END_RESULT> | |
2216 | <RESULT IF_FAIL COUNT 2> | |
2217 | (?is)\berror: | |
2218 | <END_RESULT> | |
2219 | <RESULT IF_FAIL POSITIVE> | |
2220 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2221 | <END_RESULT> | |
2222 | <END_TC> | |
2223 | :exmp. | |
2224 | ||
2225 | .*---------------------------------------------------------------------* | |
2226 | :h3.TTCN-3::TypeDef->ComponentDef: ConstDef: 4 Dimensional | |
2227 | .*---------------------------------------------------------------------* | |
2228 | :xmp tab=0. | |
2229 | <TC - TTCN-3::TypeDef->ComponentDef: ConstDef: 4 Dimensional> | |
2230 | <COMPILE> | |
2231 | <VERDICT_LEAF PASS> | |
2232 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2233 | module ModuleA { | |
2234 | // TR 608: More than one error message is shown for a situation | |
2235 | type component MyComp18 { const integer MyConst[1][1][1][666-Nonexi19] := {{{ {1,2,3,4,666-18} }}}; } | |
2236 | } | |
2237 | <END_MODULE> | |
2238 | <RESULT IF_PASS COUNT 1> | |
2239 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2240 | <END_RESULT> | |
2241 | <RESULT IF_PASS COUNT 1> | |
2242 | (?is)\berror: | |
2243 | <END_RESULT> | |
2244 | <RESULT IF_PASS POSITIVE> | |
2245 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2246 | <END_RESULT> | |
2247 | <RESULT IF_FAIL COUNT 1> | |
2248 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2249 | <END_RESULT> | |
2250 | <RESULT IF_FAIL COUNT 1> | |
2251 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2252 | <END_RESULT> | |
2253 | <RESULT IF_FAIL COUNT 2> | |
2254 | (?is)\berror: | |
2255 | <END_RESULT> | |
2256 | <RESULT IF_FAIL POSITIVE> | |
2257 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2258 | <END_RESULT> | |
2259 | <END_TC> | |
2260 | :exmp. | |
2261 | ||
2262 | .*---------------------------------------------------------------------* | |
2263 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: PortArray (upper bound) | |
2264 | .*---------------------------------------------------------------------* | |
2265 | :xmp tab=0. | |
2266 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: PortArray (upper bound)> | |
2267 | <COMPILE> | |
2268 | <VERDICT_LEAF PASS> | |
2269 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2270 | module ModuleA { | |
2271 | type port MyPortType message { inout integer } | |
2272 | type component MyComp20 { port MyPortType MyPort[10][200+3..3+Nonexi23][2..11] } | |
2273 | } | |
2274 | <END_MODULE> | |
2275 | <RESULT IF_PASS COUNT 1> | |
2276 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2277 | <END_RESULT> | |
2278 | <RESULT IF_PASS COUNT 1> | |
2279 | (?is)\berror: | |
2280 | <END_RESULT> | |
2281 | <RESULT IF_PASS POSITIVE> | |
2282 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2283 | <END_RESULT> | |
2284 | <END_TC> | |
2285 | :exmp. | |
2286 | ||
2287 | .*---------------------------------------------------------------------* | |
2288 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: PortArray (lower bound) | |
2289 | .*---------------------------------------------------------------------* | |
2290 | :xmp tab=0. | |
2291 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: PortArray (lower bound)> | |
2292 | <COMPILE> | |
2293 | <VERDICT_LEAF PASS> | |
2294 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2295 | module ModuleA { | |
2296 | type port MyPortType message { inout integer } | |
2297 | type component MyComp20 { port MyPortType MyPort[10][Nonexi12+3..3+5][2..11] } | |
2298 | } | |
2299 | <END_MODULE> | |
2300 | <RESULT IF_PASS COUNT 1> | |
2301 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2302 | <END_RESULT> | |
2303 | <RESULT IF_PASS COUNT 1> | |
2304 | (?is)\berror: | |
2305 | <END_RESULT> | |
2306 | <RESULT IF_PASS POSITIVE> | |
2307 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2308 | <END_RESULT> | |
2309 | <END_TC> | |
2310 | :exmp. | |
2311 | ||
2312 | .*---------------------------------------------------------------------* | |
2313 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: TimerArray (upper bound) | |
2314 | .*---------------------------------------------------------------------* | |
2315 | :xmp tab=0. | |
2316 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: TimerArray (upper bound)> | |
2317 | <COMPILE> | |
2318 | <VERDICT_LEAF PASS> | |
2319 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2320 | module ModuleA { | |
2321 | type component MyComp21 { timer MyTimer[0..16][4..8][666..Nonexi24] } | |
2322 | } | |
2323 | <END_MODULE> | |
2324 | <RESULT IF_PASS COUNT 1> | |
2325 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2326 | <END_RESULT> | |
2327 | <RESULT IF_PASS COUNT 1> | |
2328 | (?is)\berror: | |
2329 | <END_RESULT> | |
2330 | <RESULT IF_PASS POSITIVE> | |
2331 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2332 | <END_RESULT> | |
2333 | <END_TC> | |
2334 | :exmp. | |
2335 | ||
2336 | .*---------------------------------------------------------------------* | |
2337 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: TimerArray (lower bound) | |
2338 | .*---------------------------------------------------------------------* | |
2339 | :xmp tab=0. | |
2340 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: TimerArray (lower bound)> | |
2341 | <COMPILE> | |
2342 | <VERDICT_LEAF PASS> | |
2343 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2344 | module ModuleA { | |
2345 | type component MyComp21 { timer MyTimer[0..16][4..8][Nonexi24..666] } | |
2346 | } | |
2347 | <END_MODULE> | |
2348 | <RESULT IF_PASS COUNT 1> | |
2349 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2350 | <END_RESULT> | |
2351 | <RESULT IF_PASS COUNT 1> | |
2352 | (?is)\berror: | |
2353 | <END_RESULT> | |
2354 | <RESULT IF_PASS POSITIVE> | |
2355 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2356 | <END_RESULT> | |
2357 | <END_TC> | |
2358 | :exmp. | |
2359 | ||
2360 | .*---------------------------------------------------------------------* | |
2361 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: VarArray (upper bound) | |
2362 | .*---------------------------------------------------------------------* | |
2363 | :xmp tab=0. | |
2364 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: VarArray (upper bound)> | |
2365 | <COMPILE> | |
2366 | <VERDICT_LEAF PASS> | |
2367 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2368 | module ModuleA { | |
2369 | // TR 608: More than one error message is shown for a situation | |
2370 | type component MyComp21 { var integer MyVar[0..16][4..8][666..Nonexi24] } | |
2371 | } | |
2372 | <END_MODULE> | |
2373 | <RESULT IF_PASS COUNT 1> | |
2374 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2375 | <END_RESULT> | |
2376 | <RESULT IF_PASS COUNT 1> | |
2377 | (?is)\berror: | |
2378 | <END_RESULT> | |
2379 | <RESULT IF_PASS POSITIVE> | |
2380 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2381 | <END_RESULT> | |
2382 | <RESULT IF_FAIL COUNT 1> | |
2383 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2384 | <END_RESULT> | |
2385 | <RESULT IF_FAIL COUNT 1> | |
2386 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2387 | <END_RESULT> | |
2388 | <RESULT IF_FAIL COUNT 2> | |
2389 | (?is)\berror: | |
2390 | <END_RESULT> | |
2391 | <RESULT IF_FAIL POSITIVE> | |
2392 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2393 | <END_RESULT> | |
2394 | <END_TC> | |
2395 | :exmp. | |
2396 | ||
2397 | .*---------------------------------------------------------------------* | |
2398 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: VarArray (lower bound) | |
2399 | .*---------------------------------------------------------------------* | |
2400 | :xmp tab=0. | |
2401 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: VarArray (lower bound)> | |
2402 | <COMPILE> | |
2403 | <VERDICT_LEAF PASS> | |
2404 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2405 | module ModuleA { | |
2406 | // TR 608: More than one error message is shown for a situation | |
2407 | type component MyComp21 { var integer MyVar[0..16][4..8][Nonexi24..666] } | |
2408 | } | |
2409 | <END_MODULE> | |
2410 | <RESULT IF_PASS COUNT 1> | |
2411 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2412 | <END_RESULT> | |
2413 | <RESULT IF_PASS COUNT 1> | |
2414 | (?is)\berror: | |
2415 | <END_RESULT> | |
2416 | <RESULT IF_PASS POSITIVE> | |
2417 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2418 | <END_RESULT> | |
2419 | <RESULT IF_FAIL COUNT 1> | |
2420 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2421 | <END_RESULT> | |
2422 | <RESULT IF_FAIL COUNT 1> | |
2423 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2424 | <END_RESULT> | |
2425 | <RESULT IF_FAIL COUNT 2> | |
2426 | (?is)\berror: | |
2427 | <END_RESULT> | |
2428 | <RESULT IF_FAIL POSITIVE> | |
2429 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2430 | <END_RESULT> | |
2431 | <END_TC> | |
2432 | :exmp. | |
2433 | ||
2434 | .*---------------------------------------------------------------------* | |
2435 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: ConstArray (upper bound) | |
2436 | .*---------------------------------------------------------------------* | |
2437 | :xmp tab=0. | |
2438 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: ConstArray (upper bound)> | |
2439 | <COMPILE> | |
2440 | <VERDICT_LEAF PASS> | |
2441 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2442 | module ModuleA { | |
2443 | // TR 608: More than one error message is shown for a situation | |
2444 | type component MyComp21 { const integer MyConst[0..Nonexi24][0..0][1] := {{{10}}} } | |
2445 | } | |
2446 | <END_MODULE> | |
2447 | <RESULT IF_PASS COUNT 1> | |
2448 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2449 | <END_RESULT> | |
2450 | <RESULT IF_PASS COUNT 1> | |
2451 | (?is)\berror: | |
2452 | <END_RESULT> | |
2453 | <RESULT IF_PASS POSITIVE> | |
2454 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2455 | <END_RESULT> | |
2456 | <RESULT IF_FAIL COUNT 1> | |
2457 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2458 | <END_RESULT> | |
2459 | <RESULT IF_FAIL COUNT 1> | |
2460 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2461 | <END_RESULT> | |
2462 | <RESULT IF_FAIL COUNT 2> | |
2463 | (?is)\berror: | |
2464 | <END_RESULT> | |
2465 | <RESULT IF_FAIL POSITIVE> | |
2466 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2467 | <END_RESULT> | |
2468 | <END_TC> | |
2469 | :exmp. | |
2470 | ||
2471 | .*---------------------------------------------------------------------* | |
2472 | :h3.TTCN-3::TypeDef->ComponentDef: Array index ranges: ConstArray (lower bound) | |
2473 | .*---------------------------------------------------------------------* | |
2474 | :xmp tab=0. | |
2475 | <TC - TTCN-3::TypeDef->ComponentDef: Array index ranges: ConstArray (lower bound)> | |
2476 | <COMPILE> | |
2477 | <VERDICT_LEAF PASS> | |
2478 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2479 | module ModuleA { | |
2480 | type component MyComp21 { const integer MyConst[Nonexi24..666][0..0][1] := {{{10}}} } | |
2481 | } | |
2482 | <END_MODULE> | |
2483 | <RESULT IF_PASS COUNT 1> | |
2484 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2485 | <END_RESULT> | |
2486 | <RESULT IF_PASS COUNT 1> | |
2487 | (?is)\berror: | |
2488 | <END_RESULT> | |
2489 | <RESULT IF_PASS POSITIVE> | |
2490 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2491 | <END_RESULT> | |
2492 | <RESULT IF_FAIL COUNT 1> | |
2493 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2494 | <END_RESULT> | |
2495 | <RESULT IF_FAIL COUNT 1> | |
2496 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
2497 | <END_RESULT> | |
2498 | <RESULT IF_FAIL COUNT 2> | |
2499 | (?is)\berror: | |
2500 | <END_RESULT> | |
2501 | <RESULT IF_FAIL POSITIVE> | |
2502 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2503 | <END_RESULT> | |
2504 | <END_TC> | |
2505 | :exmp. | |
2506 | ||
2507 | .*---------------------------------------------------------------------* | |
2508 | :h3.TTCN-3::Subtypes, list of values: Integer | |
2509 | .*---------------------------------------------------------------------* | |
2510 | :xmp tab=0. | |
2511 | <TC - TTCN-3::Subtypes, list of values: Integer> | |
2512 | <COMPILE> | |
2513 | <VERDICT_LEAF PASS> | |
2514 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2515 | module ModuleA { | |
2516 | type integer Type_integer_subtyped (-9000, 100, Nonexi01); | |
2517 | type integer Type_integer_root; | |
2518 | type Type_integer_root Type_integer_subtypedroot (-100, 0, Nonexi02, 9, -89); | |
2519 | } | |
2520 | <END_MODULE> | |
2521 | <RESULT IF_PASS COUNT 2> | |
2522 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2523 | <END_RESULT> | |
2524 | <RESULT IF_PASS COUNT 2> | |
2525 | (?is)\berror: | |
2526 | <END_RESULT> | |
2527 | <RESULT IF_PASS POSITIVE> | |
2528 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2529 | <END_RESULT> | |
2530 | <END_TC> | |
2531 | :exmp. | |
2532 | ||
2533 | .*---------------------------------------------------------------------* | |
2534 | :h3.TTCN-3::Subtypes, list of values: Float | |
2535 | .*---------------------------------------------------------------------* | |
2536 | :xmp tab=0. | |
2537 | <TC - TTCN-3::Subtypes, list of values: Float> | |
2538 | <COMPILE> | |
2539 | <VERDICT_LEAF PASS> | |
2540 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2541 | module ModuleA { | |
2542 | type float Type_float_subtyped (-9000.0, 100.0, Nonexi01); | |
2543 | type float Type_float_root; | |
2544 | type Type_float_root Type_float_subtypedroot (-100.0, 0.0, Nonexi02, 9.0, -89.0 + 11.1); | |
2545 | } | |
2546 | <END_MODULE> | |
2547 | <RESULT IF_PASS COUNT 2> | |
2548 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2549 | <END_RESULT> | |
2550 | <RESULT IF_PASS COUNT 2> | |
2551 | (?is)\berror: | |
2552 | <END_RESULT> | |
2553 | <RESULT IF_PASS POSITIVE> | |
2554 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2555 | <END_RESULT> | |
2556 | <END_TC> | |
2557 | :exmp. | |
2558 | ||
2559 | .*---------------------------------------------------------------------* | |
2560 | :h3.TTCN-3::Subtypes, list of values: Boolean | |
2561 | .*---------------------------------------------------------------------* | |
2562 | :xmp tab=0. | |
2563 | <TC - TTCN-3::Subtypes, list of values: Boolean> | |
2564 | <COMPILE> | |
2565 | <VERDICT_LEAF PASS> | |
2566 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2567 | module ModuleA { | |
2568 | type boolean Type_boolean_subtyped (false, Nonexi01); | |
2569 | type boolean Type_boolean_root; | |
2570 | type Type_boolean_root Type_boolean_subtypedroot (false, Nonexi02, true); | |
2571 | } | |
2572 | <END_MODULE> | |
2573 | <RESULT IF_PASS COUNT 2> | |
2574 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2575 | <END_RESULT> | |
2576 | <RESULT IF_PASS COUNT 2> | |
2577 | (?is)\berror: | |
2578 | <END_RESULT> | |
2579 | <RESULT IF_PASS POSITIVE> | |
2580 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2581 | <END_RESULT> | |
2582 | <END_TC> | |
2583 | :exmp. | |
2584 | ||
2585 | .*---------------------------------------------------------------------* | |
2586 | :h3.TTCN-3::Subtypes, list of values: Objid | |
2587 | .*---------------------------------------------------------------------* | |
2588 | :xmp tab=0. | |
2589 | <TC - TTCN-3::Subtypes, list of values: Objid> | |
2590 | <COMPILE> | |
2591 | <VERDICT_LEAF PASS> | |
2592 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2593 | module ModuleA { | |
2594 | type objid Type_objid_subtypedroot1 (objid {0 4 0}, Nonexi); | |
2595 | type objid Type_objid_subtypedroot2 (objid {0 4 0}, objid {Nonexi 4 0}); | |
2596 | type objid Type_objid_root; | |
2597 | type Type_objid_root Type_objid_subtypedroot3 (objid {0 4 0}, Nonexi); | |
2598 | type Type_objid_root Type_objid_subtypedroot4 (objid {0 4 0}, objid {Nonexi 4 0}); | |
2599 | } | |
2600 | <END_MODULE> | |
2601 | <RESULT IF_PASS COUNT 4> | |
2602 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2603 | <END_RESULT> | |
2604 | <RESULT IF_PASS COUNT 4> | |
2605 | (?is)\berror: | |
2606 | <END_RESULT> | |
2607 | <RESULT IF_PASS POSITIVE> | |
2608 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2609 | <END_RESULT> | |
2610 | <END_TC> | |
2611 | :exmp. | |
2612 | ||
2613 | .*---------------------------------------------------------------------* | |
2614 | :h3.TTCN-3::Subtypes, list of values: Verdicttype | |
2615 | .*---------------------------------------------------------------------* | |
2616 | :xmp tab=0. | |
2617 | <TC - TTCN-3::Subtypes, list of values: Verdicttype> | |
2618 | <COMPILE> | |
2619 | <VERDICT_LEAF PASS> | |
2620 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2621 | module ModuleA { | |
2622 | type verdicttype Type_verdicttype_subtyped (error, Nonexi11, fail); | |
2623 | type verdicttype Type_verdicttype_root; | |
2624 | type Type_verdicttype_root Type_verdicttype_subtypedroot (error, Nonexi10, fail); | |
2625 | } | |
2626 | <END_MODULE> | |
2627 | <RESULT IF_PASS COUNT 2> | |
2628 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2629 | <END_RESULT> | |
2630 | <RESULT IF_PASS COUNT 2> | |
2631 | (?is)\berror: | |
2632 | <END_RESULT> | |
2633 | <RESULT IF_PASS POSITIVE> | |
2634 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2635 | <END_RESULT> | |
2636 | <END_TC> | |
2637 | :exmp. | |
2638 | ||
2639 | .*---------------------------------------------------------------------* | |
2640 | :h3.TTCN-3::Subtypes, list of values: Bitstring | |
2641 | .*---------------------------------------------------------------------* | |
2642 | :xmp tab=0. | |
2643 | <TC - TTCN-3::Subtypes, list of values: Bitstring> | |
2644 | <COMPILE> | |
2645 | <VERDICT_LEAF PASS> | |
2646 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2647 | module ModuleA { | |
2648 | type bitstring Type_bitstring_subtyped ('0011'B & '1100'B, '1'B & Nonexi13, '1111'B); | |
2649 | type bitstring Type_bitstring_root; | |
2650 | type Type_bitstring_root Type_bitstring_subtypedroot ('0011'B & '1100'B, '1'B & Nonexi13, '1111'B); | |
2651 | } | |
2652 | <END_MODULE> | |
2653 | <RESULT IF_PASS COUNT 2> | |
2654 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2655 | <END_RESULT> | |
2656 | <RESULT IF_PASS COUNT 2> | |
2657 | (?is)\berror: | |
2658 | <END_RESULT> | |
2659 | <RESULT IF_PASS POSITIVE> | |
2660 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2661 | <END_RESULT> | |
2662 | <END_TC> | |
2663 | :exmp. | |
2664 | ||
2665 | .*---------------------------------------------------------------------* | |
2666 | :h3.TTCN-3::Subtypes, list of values: Hexstring | |
2667 | .*---------------------------------------------------------------------* | |
2668 | :xmp tab=0. | |
2669 | <TC - TTCN-3::Subtypes, list of values: Hexstring> | |
2670 | <COMPILE> | |
2671 | <VERDICT_LEAF PASS> | |
2672 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2673 | module ModuleA { | |
2674 | // TR 655: strange parse error message | |
2675 | // type hexstring Type_hexstring_subtyped (''ABDC'H, Nonexi14 & 'A0'H, '0AAA'H); | |
2676 | type hexstring Type_hexstring_subtyped ('ABDC'H, Nonexi14 & 'A0'H, '0AAA'H); | |
2677 | type hexstring Type_hexstring_root; | |
2678 | type Type_hexstring_root Type_hexstring_subtypedroot ('ABDC'H, '00'H & Nonexi14, '0AAA'H); | |
2679 | } | |
2680 | <END_MODULE> | |
2681 | <RESULT IF_PASS COUNT 2> | |
2682 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2683 | <END_RESULT> | |
2684 | <RESULT IF_PASS COUNT 2> | |
2685 | (?is)\berror: | |
2686 | <END_RESULT> | |
2687 | <RESULT IF_PASS POSITIVE> | |
2688 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2689 | <END_RESULT> | |
2690 | <END_TC> | |
2691 | :exmp. | |
2692 | ||
2693 | .*---------------------------------------------------------------------* | |
2694 | :h3.TTCN-3::Subtypes, list of values: Octetstring | |
2695 | .*---------------------------------------------------------------------* | |
2696 | :xmp tab=0. | |
2697 | <TC - TTCN-3::Subtypes, list of values: Octetstring> | |
2698 | <COMPILE> | |
2699 | <VERDICT_LEAF PASS> | |
2700 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2701 | module ModuleA { | |
2702 | type octetstring Type_octetstring_subtyped ('0011'O, Nonexi17, '1111'O); | |
2703 | type octetstring Type_octetstring_root; | |
2704 | type Type_octetstring_root Type_octetstring_subtypedroot ('0011'O, Nonexi16, '1111'O); | |
2705 | } | |
2706 | <END_MODULE> | |
2707 | <RESULT IF_PASS COUNT 2> | |
2708 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2709 | <END_RESULT> | |
2710 | <RESULT IF_PASS COUNT 2> | |
2711 | (?is)\berror: | |
2712 | <END_RESULT> | |
2713 | <RESULT IF_PASS POSITIVE> | |
2714 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2715 | <END_RESULT> | |
2716 | <END_TC> | |
2717 | :exmp. | |
2718 | ||
2719 | .*---------------------------------------------------------------------* | |
2720 | :h3.TTCN-3::Subtypes, list of values: Charstring | |
2721 | .*---------------------------------------------------------------------* | |
2722 | :xmp tab=0. | |
2723 | <TC - TTCN-3::Subtypes, list of values: Charstring> | |
2724 | <COMPILE> | |
2725 | <VERDICT_LEAF PASS> | |
2726 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2727 | module ModuleA { | |
2728 | type charstring Type_charstring_subtyped ("0011", Nonexi19, "Halflife2"); | |
2729 | type charstring Type_charstring_root; | |
2730 | type Type_charstring_root Type_charstring_subtypedroot ("0011", Nonexi18, "Halflife2"); | |
2731 | } | |
2732 | <END_MODULE> | |
2733 | <RESULT IF_PASS COUNT 2> | |
2734 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2735 | <END_RESULT> | |
2736 | <RESULT IF_PASS COUNT 2> | |
2737 | (?is)\berror: | |
2738 | <END_RESULT> | |
2739 | <RESULT IF_PASS POSITIVE> | |
2740 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2741 | <END_RESULT> | |
2742 | <END_TC> | |
2743 | :exmp. | |
2744 | ||
2745 | .*---------------------------------------------------------------------* | |
2746 | :h3.TTCN-3::Subtypes, list of values: Universal charstring | |
2747 | .*---------------------------------------------------------------------* | |
2748 | :xmp tab=0. | |
2749 | <TC - TTCN-3::Subtypes, list of values: Universal charstring> | |
2750 | <COMPILE> | |
2751 | <VERDICT_LEAF PASS> | |
2752 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2753 | module ModuleA { | |
2754 | type universal charstring | |
2755 | Type_universal_charstring_subtyped ("0011", Nonexi21, "Halflife2"); | |
2756 | type universal charstring Type_universal_charstring_root; | |
2757 | // TR 605: subtyping not supported for types and it stops code generation | |
2758 | type Type_universal_charstring_root | |
2759 | Type_universal_charstring_subtypedroot ("0011", Nonexi20, "Halflife2"); | |
2760 | } | |
2761 | <END_MODULE> | |
2762 | <RESULT IF_PASS COUNT 2> | |
2763 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2764 | <END_RESULT> | |
2765 | <RESULT IF_PASS COUNT 2> | |
2766 | (?is)\berror: | |
2767 | <END_RESULT> | |
2768 | <RESULT IF_PASS POSITIVE> | |
2769 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2770 | <END_RESULT> | |
2771 | <END_TC> | |
2772 | :exmp. | |
2773 | ||
2774 | .*---------------------------------------------------------------------* | |
2775 | :h3.TTCN-3::Subtypes, list of values: Record | |
2776 | .*---------------------------------------------------------------------* | |
2777 | :xmp tab=0. | |
2778 | <TC - TTCN-3::Subtypes, list of values: Record> | |
2779 | <COMPILE> | |
2780 | <VERDICT_LEAF PASS> | |
2781 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2782 | module ModuleA { | |
2783 | type record Type_record_root { | |
2784 | integer field1 optional | |
2785 | }; | |
2786 | type Type_record_root Type_record_subtypedroot ( { field1 := 10 }, { field1 := Nonexi22 } ); | |
2787 | } | |
2788 | <END_MODULE> | |
2789 | <RESULT IF_PASS COUNT 1> | |
2790 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2791 | <END_RESULT> | |
2792 | <RESULT IF_PASS COUNT 1> | |
2793 | (?is)\berror: | |
2794 | <END_RESULT> | |
2795 | <RESULT IF_PASS POSITIVE> | |
2796 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2797 | <END_RESULT> | |
2798 | <END_TC> | |
2799 | :exmp. | |
2800 | ||
2801 | .*---------------------------------------------------------------------* | |
2802 | :h3.TTCN-3::Subtypes, list of values: Record of | |
2803 | .*---------------------------------------------------------------------* | |
2804 | :xmp tab=0. | |
2805 | <TC - TTCN-3::Subtypes, list of values: Record of> | |
2806 | <COMPILE> | |
2807 | <VERDICT_LEAF PASS> | |
2808 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2809 | module ModuleA { | |
2810 | type record of integer Type_recordof_root; | |
2811 | type Type_recordof_root Type_recordof_subtypedroot ( { 1,2,3}, Nonexi23, {3,4,Nonexi24} ); | |
2812 | } | |
2813 | <END_MODULE> | |
2814 | <RESULT IF_PASS COUNT 2> | |
2815 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2816 | <END_RESULT> | |
2817 | <RESULT IF_PASS COUNT 2> | |
2818 | (?is)\berror: | |
2819 | <END_RESULT> | |
2820 | <RESULT IF_PASS POSITIVE> | |
2821 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2822 | <END_RESULT> | |
2823 | <END_TC> | |
2824 | :exmp. | |
2825 | ||
2826 | .*---------------------------------------------------------------------* | |
2827 | :h3.TTCN-3::Subtypes, list of values: Set | |
2828 | .*---------------------------------------------------------------------* | |
2829 | :xmp tab=0. | |
2830 | <TC - TTCN-3::Subtypes, list of values: Set> | |
2831 | <COMPILE> | |
2832 | <VERDICT_LEAF PASS> | |
2833 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2834 | module ModuleA { | |
2835 | type set Type_set_root { | |
2836 | integer field1 optional | |
2837 | }; | |
2838 | type Type_set_root Type_set_subtypedroot ( { field1 := 10 }, { field1 := Nonexi22 } ); | |
2839 | } | |
2840 | <END_MODULE> | |
2841 | <RESULT IF_PASS COUNT 1> | |
2842 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2843 | <END_RESULT> | |
2844 | <RESULT IF_PASS COUNT 1> | |
2845 | (?is)\berror: | |
2846 | <END_RESULT> | |
2847 | <RESULT IF_PASS POSITIVE> | |
2848 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2849 | <END_RESULT> | |
2850 | <END_TC> | |
2851 | :exmp. | |
2852 | ||
2853 | .*---------------------------------------------------------------------* | |
2854 | :h3.TTCN-3::Subtypes, list of values: Set of | |
2855 | .*---------------------------------------------------------------------* | |
2856 | :xmp tab=0. | |
2857 | <TC - TTCN-3::Subtypes, list of values: Set of> | |
2858 | <COMPILE> | |
2859 | <VERDICT_LEAF PASS> | |
2860 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2861 | module ModuleA { | |
2862 | type set of integer Type_setof_root; | |
2863 | type Type_setof_root Type_setof_subtypedroot ( { 1,2,3}, Nonexi23, {3,4,Nonexi24} ); | |
2864 | } | |
2865 | <END_MODULE> | |
2866 | <RESULT IF_PASS COUNT 2> | |
2867 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2868 | <END_RESULT> | |
2869 | <RESULT IF_PASS COUNT 2> | |
2870 | (?is)\berror: | |
2871 | <END_RESULT> | |
2872 | <RESULT IF_PASS POSITIVE> | |
2873 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2874 | <END_RESULT> | |
2875 | <END_TC> | |
2876 | :exmp. | |
2877 | ||
2878 | .*---------------------------------------------------------------------* | |
2879 | :h3.TTCN-3::Subtypes, list of values: Enumerated | |
2880 | .*---------------------------------------------------------------------* | |
2881 | :xmp tab=0. | |
2882 | <TC - TTCN-3::Subtypes, list of values: Enumerated> | |
2883 | <COMPILE> | |
2884 | <VERDICT_LEAF PASS> | |
2885 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2886 | module ModuleA { | |
2887 | type enumerated Type_enumerated_root { Doom1, Doom2, Doom3 }; | |
2888 | type Type_enumerated_root Type_enumerated_subtypedroot ( Doom3, Nonexi28 ); | |
2889 | } | |
2890 | <END_MODULE> | |
2891 | <RESULT IF_PASS COUNT 1> | |
2892 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2893 | <END_RESULT> | |
2894 | <RESULT IF_PASS COUNT 1> | |
2895 | (?is)\berror: | |
2896 | <END_RESULT> | |
2897 | <RESULT IF_PASS POSITIVE> | |
2898 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2899 | <END_RESULT> | |
2900 | <END_TC> | |
2901 | :exmp. | |
2902 | ||
2903 | .*---------------------------------------------------------------------* | |
2904 | :h3.TTCN-3::Subtypes, list of values: Union | |
2905 | .*---------------------------------------------------------------------* | |
2906 | :xmp tab=0. | |
2907 | <TC - TTCN-3::Subtypes, list of values: Union> | |
2908 | <COMPILE> | |
2909 | <VERDICT_LEAF PASS> | |
2910 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2911 | module ModuleA { | |
2912 | type union Type_union_root { | |
2913 | integer field1, | |
2914 | integer field2 | |
2915 | }; | |
2916 | type Type_union_root Type_union_subtypedroot ( { field1 := 10 }, Nonexi29 ); | |
2917 | ||
2918 | } | |
2919 | <END_MODULE> | |
2920 | <RESULT IF_PASS COUNT 1> | |
2921 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2922 | <END_RESULT> | |
2923 | <RESULT IF_PASS COUNT 1> | |
2924 | (?is)\berror: | |
2925 | <END_RESULT> | |
2926 | <RESULT IF_PASS POSITIVE> | |
2927 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2928 | <END_RESULT> | |
2929 | <END_TC> | |
2930 | :exmp. | |
2931 | ||
2932 | .*---------------------------------------------------------------------* | |
2933 | :h3.TTCN-3::Subtypes, list of values: Anytype | |
2934 | .*---------------------------------------------------------------------* | |
2935 | :xmp tab=0. | |
2936 | <TC - TTCN-3::Subtypes, list of values: Anytype> | |
2937 | <COMPILE> | |
2938 | <VERDICT_LEAF FAIL> | |
2939 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2940 | module ModuleA { | |
2941 | type anytype MyType ( 10, 11.0, true, false ); | |
2942 | } | |
2943 | <END_MODULE> | |
2944 | <RESULT IF_PASS COUNT 1> | |
2945 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2946 | <END_RESULT> | |
2947 | <RESULT IF_PASS COUNT 1> | |
2948 | (?is)\berror: | |
2949 | <END_RESULT> | |
2950 | <RESULT IF_PASS POSITIVE> | |
2951 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2952 | <END_RESULT> | |
2953 | <RESULT IF_PASS COUNT 1> | |
2954 | (?im)\berror\b.+?not.+?supported | |
2955 | <END_RESULT> | |
2956 | <RESULT IF_FAIL COUNT 4> | |
2957 | (?is)\berror: | |
2958 | <END_RESULT> | |
2959 | <END_TC> | |
2960 | :exmp. | |
2961 | ||
2962 | .*---------------------------------------------------------------------* | |
2963 | :h3.TTCN-3::Subtypes, range: Integer | |
2964 | .*---------------------------------------------------------------------* | |
2965 | :xmp tab=0. | |
2966 | <TC - TTCN-3::Subtypes, range: Integer> | |
2967 | <COMPILE> | |
2968 | <VERDICT_LEAF PASS> | |
2969 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2970 | module ModuleA { | |
2971 | type integer Type_integer_subtyped2 (-1976, 10 .. Nonexi02); | |
2972 | type integer Type_integer_root; | |
2973 | type Type_integer_root Type_integer_subtypedroot (-1976 .. Nonexi03); | |
2974 | } | |
2975 | <END_MODULE> | |
2976 | <RESULT IF_PASS COUNT 2> | |
2977 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
2978 | <END_RESULT> | |
2979 | <RESULT IF_PASS COUNT 2> | |
2980 | (?is)\berror: | |
2981 | <END_RESULT> | |
2982 | <RESULT IF_PASS POSITIVE> | |
2983 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
2984 | <END_RESULT> | |
2985 | <END_TC> | |
2986 | :exmp. | |
2987 | ||
2988 | .*---------------------------------------------------------------------* | |
2989 | :h3.TTCN-3::Subtypes, range: Float | |
2990 | .*---------------------------------------------------------------------* | |
2991 | :xmp tab=0. | |
2992 | <TC - TTCN-3::Subtypes, range: Float> | |
2993 | <COMPILE> | |
2994 | <VERDICT_LEAF PASS> | |
2995 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
2996 | module ModuleA { | |
2997 | type float Type_float_subtyped2 (-1976.0, 10.0..Nonexi05); | |
2998 | type float Type_float_root; | |
2999 | type Type_float_root Type_float_subtypedroot (-1976.0 .. Nonexi06); | |
3000 | } | |
3001 | <END_MODULE> | |
3002 | <RESULT IF_PASS COUNT 2> | |
3003 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3004 | <END_RESULT> | |
3005 | <RESULT IF_PASS COUNT 2> | |
3006 | (?is)\berror: | |
3007 | <END_RESULT> | |
3008 | <RESULT IF_PASS POSITIVE> | |
3009 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3010 | <END_RESULT> | |
3011 | <END_TC> | |
3012 | :exmp. | |
3013 | ||
3014 | .*---------------------------------------------------------------------* | |
3015 | :h3.TTCN-3::Subtypes, range: Charstring | |
3016 | .*---------------------------------------------------------------------* | |
3017 | :xmp tab=0. | |
3018 | <TC - TTCN-3::Subtypes, range: Charstring> | |
3019 | <COMPILE> | |
3020 | <VERDICT_LEAF PASS> | |
3021 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3022 | module ModuleA { | |
3023 | type charstring Type_charstring_root; | |
3024 | type Type_charstring_root Type_charstring_subtypedroot (Nonexi07.."c"); | |
3025 | type charstring Type_charstring_subtyped (Nonexi08.."c"); | |
3026 | } | |
3027 | <END_MODULE> | |
3028 | <RESULT IF_PASS COUNT 2> | |
3029 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3030 | <END_RESULT> | |
3031 | <RESULT IF_PASS COUNT 2> | |
3032 | (?is)\berror: | |
3033 | <END_RESULT> | |
3034 | <RESULT IF_PASS POSITIVE> | |
3035 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3036 | <END_RESULT> | |
3037 | <END_TC> | |
3038 | :exmp. | |
3039 | ||
3040 | .*---------------------------------------------------------------------* | |
3041 | :h3.TTCN-3::Subtypes, range: Universal charstring | |
3042 | .*---------------------------------------------------------------------* | |
3043 | :xmp tab=0. | |
3044 | <TC - TTCN-3::Subtypes, range: Universal charstring> | |
3045 | <COMPILE> | |
3046 | <VERDICT_LEAF PASS> | |
3047 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3048 | module ModuleA { | |
3049 | type universal charstring Type_universal_charstring_root; | |
3050 | type Type_universal_charstring_root | |
3051 | Type_universal_charstring_subtypedroot ("a"..Nonexi09); | |
3052 | type universal charstring | |
3053 | Type_universal_charstring_subtyped ("a"..Nonexi10); | |
3054 | } | |
3055 | <END_MODULE> | |
3056 | <RESULT IF_PASS COUNT 2> | |
3057 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3058 | <END_RESULT> | |
3059 | <RESULT IF_PASS COUNT 2> | |
3060 | (?is)\berror: | |
3061 | <END_RESULT> | |
3062 | <RESULT IF_PASS POSITIVE> | |
3063 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3064 | <END_RESULT> | |
3065 | <END_TC> | |
3066 | :exmp. | |
3067 | ||
3068 | .*---------------------------------------------------------------------* | |
3069 | :h3.TTCN-3::Subtypes, length: Bitstring | |
3070 | .*---------------------------------------------------------------------* | |
3071 | :xmp tab=0. | |
3072 | <TC - TTCN-3::Subtypes, length: Bitstring> | |
3073 | <COMPILE> | |
3074 | <VERDICT_LEAF PASS> | |
3075 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3076 | module ModuleA { | |
3077 | type bitstring Type_bitstring_root; | |
3078 | type Type_bitstring_root Type_bitstring_subtypedroot length(1..Nonexi01); | |
3079 | type bitstring Type_bitstring_subtyped length(Nonexi02..10); | |
3080 | } | |
3081 | <END_MODULE> | |
3082 | <RESULT IF_PASS COUNT 2> | |
3083 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3084 | <END_RESULT> | |
3085 | <RESULT IF_PASS COUNT 2> | |
3086 | (?is)\berror: | |
3087 | <END_RESULT> | |
3088 | <RESULT IF_PASS POSITIVE> | |
3089 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3090 | <END_RESULT> | |
3091 | <END_TC> | |
3092 | :exmp. | |
3093 | ||
3094 | .*---------------------------------------------------------------------* | |
3095 | :h3.TTCN-3::Subtypes, length: Hexstring | |
3096 | .*---------------------------------------------------------------------* | |
3097 | :xmp tab=0. | |
3098 | <TC - TTCN-3::Subtypes, length: Hexstring> | |
3099 | <COMPILE> | |
3100 | <VERDICT_LEAF PASS> | |
3101 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3102 | module ModuleA { | |
3103 | type hexstring Type_hexstring_root; | |
3104 | type Type_hexstring_root Type_hexstring_subtypedroot length(1..Nonexi03); | |
3105 | type hexstring Type_hexstring_subtyped length(Nonexi04..10); | |
3106 | } | |
3107 | <END_MODULE> | |
3108 | <RESULT IF_PASS COUNT 2> | |
3109 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3110 | <END_RESULT> | |
3111 | <RESULT IF_PASS COUNT 2> | |
3112 | (?is)\berror: | |
3113 | <END_RESULT> | |
3114 | <RESULT IF_PASS POSITIVE> | |
3115 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3116 | <END_RESULT> | |
3117 | <END_TC> | |
3118 | :exmp. | |
3119 | ||
3120 | .*---------------------------------------------------------------------* | |
3121 | :h3.TTCN-3::Subtypes, length: Octetstring | |
3122 | .*---------------------------------------------------------------------* | |
3123 | :xmp tab=0. | |
3124 | <TC - TTCN-3::Subtypes, length: Octetstring> | |
3125 | <COMPILE> | |
3126 | <VERDICT_LEAF PASS> | |
3127 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3128 | module ModuleA { | |
3129 | type octetstring Type_octetstring_root; | |
3130 | type Type_octetstring_root Type_octetstring_subtypedroot length(1..Nonexi05); | |
3131 | type octetstring Type_octetstring_subtyped length(Nonexi06..10); | |
3132 | } | |
3133 | <END_MODULE> | |
3134 | <RESULT IF_PASS COUNT 2> | |
3135 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3136 | <END_RESULT> | |
3137 | <RESULT IF_PASS COUNT 2> | |
3138 | (?is)\berror: | |
3139 | <END_RESULT> | |
3140 | <RESULT IF_PASS POSITIVE> | |
3141 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3142 | <END_RESULT> | |
3143 | <END_TC> | |
3144 | :exmp. | |
3145 | ||
3146 | .*---------------------------------------------------------------------* | |
3147 | :h3.TTCN-3::Subtypes, length: Charstring | |
3148 | .*---------------------------------------------------------------------* | |
3149 | :xmp tab=0. | |
3150 | <TC - TTCN-3::Subtypes, length: Charstring> | |
3151 | <COMPILE> | |
3152 | <VERDICT_LEAF PASS> | |
3153 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3154 | module ModuleA { | |
3155 | type charstring Type_charstring_root; | |
3156 | type Type_charstring_root Type_charstring_subtypedroot length(1..Nonexi07); | |
3157 | type charstring Type_charstring_subtyped length(Nonexi08..10); | |
3158 | } | |
3159 | <END_MODULE> | |
3160 | <RESULT IF_PASS COUNT 2> | |
3161 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3162 | <END_RESULT> | |
3163 | <RESULT IF_PASS COUNT 2> | |
3164 | (?is)\berror: | |
3165 | <END_RESULT> | |
3166 | <RESULT IF_PASS POSITIVE> | |
3167 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3168 | <END_RESULT> | |
3169 | <END_TC> | |
3170 | :exmp. | |
3171 | ||
3172 | .*---------------------------------------------------------------------* | |
3173 | :h3.TTCN-3::Subtypes, length: Universal charstring | |
3174 | .*---------------------------------------------------------------------* | |
3175 | :xmp tab=0. | |
3176 | <TC - TTCN-3::Subtypes, length: Universal charstring> | |
3177 | <COMPILE> | |
3178 | <VERDICT_LEAF PASS> | |
3179 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3180 | module ModuleA { | |
3181 | type universal charstring Type_universal_charstring_root; | |
3182 | type Type_universal_charstring_root | |
3183 | Type_universal_charstring_subtypedroot length(1..Nonexi09); | |
3184 | type universal charstring | |
3185 | Type_universal_charstring_subtyped length(Nonexi10..10); | |
3186 | } | |
3187 | <END_MODULE> | |
3188 | <RESULT IF_PASS COUNT 2> | |
3189 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3190 | <END_RESULT> | |
3191 | <RESULT IF_PASS COUNT 2> | |
3192 | (?is)\berror: | |
3193 | <END_RESULT> | |
3194 | <RESULT IF_PASS POSITIVE> | |
3195 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3196 | <END_RESULT> | |
3197 | <END_TC> | |
3198 | :exmp. | |
3199 | ||
3200 | .*---------------------------------------------------------------------* | |
3201 | :h3.TTCN-3::Subtypes, length: Record of | |
3202 | .*---------------------------------------------------------------------* | |
3203 | :xmp tab=0. | |
3204 | <TC - TTCN-3::Subtypes, length: Record of> | |
3205 | <COMPILE> | |
3206 | <VERDICT_LEAF PASS> | |
3207 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3208 | module ModuleA { | |
3209 | type record of integer Type_recordof_root; | |
3210 | type Type_recordof_root Type_recordof_subtypedroot length(1..Nonexi11); | |
3211 | } | |
3212 | <END_MODULE> | |
3213 | <RESULT IF_PASS COUNT 1> | |
3214 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3215 | <END_RESULT> | |
3216 | <RESULT IF_PASS COUNT 1> | |
3217 | (?is)\berror: | |
3218 | <END_RESULT> | |
3219 | <RESULT IF_PASS POSITIVE> | |
3220 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3221 | <END_RESULT> | |
3222 | <END_TC> | |
3223 | :exmp. | |
3224 | ||
3225 | .*---------------------------------------------------------------------* | |
3226 | :h3.TTCN-3::Subtypes, length: Set of | |
3227 | .*---------------------------------------------------------------------* | |
3228 | :xmp tab=0. | |
3229 | <TC - TTCN-3::Subtypes, length: Set of> | |
3230 | <COMPILE> | |
3231 | <VERDICT_LEAF PASS> | |
3232 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3233 | module ModuleA { | |
3234 | type set of integer Type_setof_root; | |
3235 | type Type_setof_root Type_setof_subtypedroot length(1..Nonexi12); | |
3236 | } | |
3237 | <END_MODULE> | |
3238 | <RESULT IF_PASS COUNT 1> | |
3239 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3240 | <END_RESULT> | |
3241 | <RESULT IF_PASS COUNT 1> | |
3242 | (?is)\berror: | |
3243 | <END_RESULT> | |
3244 | <RESULT IF_PASS POSITIVE> | |
3245 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3246 | <END_RESULT> | |
3247 | <END_TC> | |
3248 | :exmp. | |
3249 | ||
3250 | .*---------------------------------------------------------------------* | |
3251 | :h3.TTCN-3::Assignment->VariableRef->VarIdentifier: StatementBlock | |
3252 | .*---------------------------------------------------------------------* | |
3253 | :xmp tab=0. | |
3254 | <TC - TTCN-3::Assignment->VariableRef->VarIdentifier: StatementBlock> | |
3255 | <COMPILE> | |
3256 | <VERDICT_LEAF PASS> | |
3257 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3258 | module ModuleA { | |
3259 | function MyFunc() { Nonexi01 := 10; } | |
3260 | } | |
3261 | <END_MODULE> | |
3262 | <RESULT IF_PASS COUNT 1> | |
3263 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3264 | <END_RESULT> | |
3265 | <RESULT IF_PASS COUNT 1> | |
3266 | (?is)\berror: | |
3267 | <END_RESULT> | |
3268 | <RESULT IF_PASS POSITIVE> | |
3269 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3270 | <END_RESULT> | |
3271 | <END_TC> | |
3272 | :exmp. | |
3273 | ||
3274 | .*---------------------------------------------------------------------* | |
3275 | :h3.TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->BasicStatements | |
3276 | .*---------------------------------------------------------------------* | |
3277 | :xmp tab=0. | |
3278 | <TC - TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->BasicStatements> | |
3279 | <COMPILE> | |
3280 | <VERDICT_LEAF PASS> | |
3281 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3282 | module ModuleA { | |
3283 | control { | |
3284 | Nonexi02 := 10; | |
3285 | } | |
3286 | } | |
3287 | <END_MODULE> | |
3288 | <RESULT IF_PASS COUNT 1> | |
3289 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3290 | <END_RESULT> | |
3291 | <RESULT IF_PASS COUNT 1> | |
3292 | (?is)\berror: | |
3293 | <END_RESULT> | |
3294 | <RESULT IF_PASS POSITIVE> | |
3295 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3296 | <END_RESULT> | |
3297 | <END_TC> | |
3298 | :exmp. | |
3299 | ||
3300 | .*---------------------------------------------------------------------* | |
3301 | :h3.TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->StatementBlock | |
3302 | .*---------------------------------------------------------------------* | |
3303 | :xmp tab=0. | |
3304 | <TC - TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->StatementBlock> | |
3305 | <COMPILE> | |
3306 | <VERDICT_LEAF PASS> | |
3307 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3308 | module ModuleA { | |
3309 | control { | |
3310 | // TR 670: memory leak when using non existent symbol in do-while loop | |
3311 | do { Nonexi03 := 10; } while (false); | |
3312 | } | |
3313 | } | |
3314 | <END_MODULE> | |
3315 | <RESULT IF_PASS COUNT 1> | |
3316 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3317 | <END_RESULT> | |
3318 | <RESULT IF_PASS COUNT 1> | |
3319 | (?is)\berror: | |
3320 | <END_RESULT> | |
3321 | <RESULT IF_PASS POSITIVE> | |
3322 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3323 | <END_RESULT> | |
3324 | <END_TC> | |
3325 | :exmp. | |
3326 | ||
3327 | .*---------------------------------------------------------------------* | |
3328 | :h3.TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->Initial | |
3329 | .*---------------------------------------------------------------------* | |
3330 | :xmp tab=0. | |
3331 | <TC - TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->Initial> | |
3332 | <COMPILE> | |
3333 | <VERDICT_LEAF PASS> | |
3334 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3335 | module ModuleA { | |
3336 | control { | |
3337 | var integer i; | |
3338 | for (Nonexi04:=0; i<10; i:=i+1) {} | |
3339 | } | |
3340 | } | |
3341 | <END_MODULE> | |
3342 | <RESULT IF_PASS COUNT 1> | |
3343 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3344 | <END_RESULT> | |
3345 | <RESULT IF_PASS COUNT 1> | |
3346 | (?is)\berror: | |
3347 | <END_RESULT> | |
3348 | <RESULT IF_PASS POSITIVE> | |
3349 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3350 | <END_RESULT> | |
3351 | <END_TC> | |
3352 | :exmp. | |
3353 | ||
3354 | .*---------------------------------------------------------------------* | |
3355 | :h3.TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->Step | |
3356 | .*---------------------------------------------------------------------* | |
3357 | :xmp tab=0. | |
3358 | <TC - TTCN-3::Assignment->VariableRef->VarIdentifier: ControlStatement->Step> | |
3359 | <COMPILE> | |
3360 | <VERDICT_LEAF PASS> | |
3361 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3362 | module ModuleA { | |
3363 | control { | |
3364 | for (var integer i:=0; i<10; Nonexi05:=i+1) {} | |
3365 | } | |
3366 | } | |
3367 | <END_MODULE> | |
3368 | <RESULT IF_PASS COUNT 1> | |
3369 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3370 | <END_RESULT> | |
3371 | <RESULT IF_PASS COUNT 1> | |
3372 | (?is)\berror: | |
3373 | <END_RESULT> | |
3374 | <RESULT IF_PASS POSITIVE> | |
3375 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3376 | <END_RESULT> | |
3377 | <END_TC> | |
3378 | :exmp. | |
3379 | ||
3380 | .*---------------------------------------------------------------------* | |
3381 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference->Field: StatementBlock | |
3382 | .*---------------------------------------------------------------------* | |
3383 | :xmp tab=0. | |
3384 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference->Field: StatementBlock> | |
3385 | <COMPILE> | |
3386 | <VERDICT_LEAF PASS> | |
3387 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3388 | module ModuleA { | |
3389 | type record of integer Embedded; | |
3390 | type record MyType { | |
3391 | integer field1, | |
3392 | Embedded field2 | |
3393 | } | |
3394 | // StatementBlock | |
3395 | function MyFunc() { | |
3396 | var MyType MyVar; | |
3397 | MyVar.Nonexi01 := 10; | |
3398 | } | |
3399 | } | |
3400 | <END_MODULE> | |
3401 | <RESULT IF_PASS COUNT 1> | |
3402 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3403 | <END_RESULT> | |
3404 | <RESULT IF_PASS COUNT 1> | |
3405 | (?is)\berror: | |
3406 | <END_RESULT> | |
3407 | <RESULT IF_PASS POSITIVE> | |
3408 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3409 | <END_RESULT> | |
3410 | <END_TC> | |
3411 | :exmp. | |
3412 | ||
3413 | .*---------------------------------------------------------------------* | |
3414 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference->Array: StatementBlock | |
3415 | .*---------------------------------------------------------------------* | |
3416 | :xmp tab=0. | |
3417 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference->Array: StatementBlock> | |
3418 | <COMPILE> | |
3419 | <VERDICT_LEAF PASS> | |
3420 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3421 | module ModuleA { | |
3422 | type record of integer Embedded; | |
3423 | type record MyType { | |
3424 | integer field1, | |
3425 | Embedded field2 | |
3426 | } | |
3427 | // StatementBlock | |
3428 | function MyFunc() { | |
3429 | var MyType MyVar; | |
3430 | MyVar.field2[666-Nonexi02] := 10; | |
3431 | } | |
3432 | } | |
3433 | <END_MODULE> | |
3434 | <RESULT IF_PASS COUNT 1> | |
3435 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3436 | <END_RESULT> | |
3437 | <RESULT IF_PASS COUNT 1> | |
3438 | (?is)\berror: | |
3439 | <END_RESULT> | |
3440 | <RESULT IF_PASS POSITIVE> | |
3441 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3442 | <END_RESULT> | |
3443 | <END_TC> | |
3444 | :exmp. | |
3445 | ||
3446 | .*---------------------------------------------------------------------* | |
3447 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference: ControlStatement->BasicStatements | |
3448 | .*---------------------------------------------------------------------* | |
3449 | :xmp tab=0. | |
3450 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference: ControlStatement->BasicStatements> | |
3451 | <COMPILE> | |
3452 | <VERDICT_LEAF PASS> | |
3453 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3454 | module ModuleA { | |
3455 | type record of integer Embedded; | |
3456 | type record MyType { | |
3457 | integer field1, | |
3458 | Embedded field2 | |
3459 | } | |
3460 | control { | |
3461 | var MyType MyVar; | |
3462 | // BasicStatements | |
3463 | MyVar.Nonexi03 := 10; | |
3464 | MyVar.field2[Nonexi04] := 10; | |
3465 | } | |
3466 | } | |
3467 | <END_MODULE> | |
3468 | <RESULT IF_PASS COUNT 1> | |
3469 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3470 | <END_RESULT> | |
3471 | <RESULT IF_PASS COUNT 1> | |
3472 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3473 | <END_RESULT> | |
3474 | <RESULT IF_PASS COUNT 2> | |
3475 | (?is)\berror: | |
3476 | <END_RESULT> | |
3477 | <RESULT IF_PASS POSITIVE> | |
3478 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3479 | <END_RESULT> | |
3480 | <END_TC> | |
3481 | :exmp. | |
3482 | ||
3483 | .*---------------------------------------------------------------------* | |
3484 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Inner statementBlock->BasicStatements | |
3485 | .*---------------------------------------------------------------------* | |
3486 | :xmp tab=0. | |
3487 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Inner statementBlock->BasicStatements> | |
3488 | <COMPILE> | |
3489 | <VERDICT_LEAF PASS> | |
3490 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3491 | module ModuleA { | |
3492 | type record of integer Embedded; | |
3493 | type record MyType { | |
3494 | integer field1, | |
3495 | Embedded field2 | |
3496 | } | |
3497 | control { | |
3498 | var MyType MyVar; | |
3499 | do { | |
3500 | MyVar.Nonexi05 := 10; | |
3501 | MyVar.field2[Nonexi06] := 10; | |
3502 | } while (false); | |
3503 | } | |
3504 | } | |
3505 | <END_MODULE> | |
3506 | <RESULT IF_PASS COUNT 1> | |
3507 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3508 | <END_RESULT> | |
3509 | <RESULT IF_PASS COUNT 1> | |
3510 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3511 | <END_RESULT><RESULT IF_PASS COUNT 2> | |
3512 | (?is)\berror: | |
3513 | <END_RESULT> | |
3514 | <RESULT IF_PASS POSITIVE> | |
3515 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3516 | <END_RESULT> | |
3517 | <END_TC> | |
3518 | :exmp. | |
3519 | ||
3520 | .*---------------------------------------------------------------------* | |
3521 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Initial | |
3522 | .*---------------------------------------------------------------------* | |
3523 | :xmp tab=0. | |
3524 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Initial> | |
3525 | <COMPILE> | |
3526 | <VERDICT_LEAF PASS> | |
3527 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3528 | module ModuleA { | |
3529 | type record of integer Embedded; | |
3530 | type record MyType { | |
3531 | integer field1, | |
3532 | Embedded field2 | |
3533 | } | |
3534 | ||
3535 | control { | |
3536 | var integer i; | |
3537 | var MyType MyVar; | |
3538 | for (MyVar.Nonexi07:=0; i<10; i:=i+1) {} | |
3539 | for (MyVar.field2[Nonexi08]:=0; i<10; i:=i+1) {} | |
3540 | } | |
3541 | } | |
3542 | <END_MODULE> | |
3543 | <RESULT IF_PASS COUNT 1> | |
3544 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3545 | <END_RESULT> | |
3546 | <RESULT IF_PASS COUNT 1> | |
3547 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3548 | <END_RESULT><RESULT IF_PASS COUNT 2> | |
3549 | (?is)\berror: | |
3550 | <END_RESULT> | |
3551 | <RESULT IF_PASS POSITIVE> | |
3552 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3553 | <END_RESULT> | |
3554 | <END_TC> | |
3555 | :exmp. | |
3556 | ||
3557 | .*---------------------------------------------------------------------* | |
3558 | :h3.TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Step | |
3559 | .*---------------------------------------------------------------------* | |
3560 | :xmp tab=0. | |
3561 | <TC - TTCN-3::Assignment->VariableRef->ExtendedFieldReference: Step> | |
3562 | <COMPILE> | |
3563 | <VERDICT_LEAF PASS> | |
3564 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3565 | module ModuleA { | |
3566 | type record of integer Embedded; | |
3567 | type record MyType { | |
3568 | integer field1, | |
3569 | Embedded field2 | |
3570 | } | |
3571 | control { | |
3572 | var MyType MyVar; | |
3573 | for (var integer i:=0; i<10; MyVar.Nonexi09:=i+1) {} | |
3574 | for (var integer i:=0; i<10; MyVar.field2[Nonexi10]:=i+1) {} | |
3575 | } | |
3576 | } | |
3577 | <END_MODULE> | |
3578 | <RESULT IF_PASS COUNT 1> | |
3579 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3580 | <END_RESULT> | |
3581 | <RESULT IF_PASS COUNT 1> | |
3582 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3583 | <END_RESULT> | |
3584 | <RESULT IF_PASS COUNT 2> | |
3585 | (?is)\berror: | |
3586 | <END_RESULT> | |
3587 | <RESULT IF_PASS POSITIVE> | |
3588 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3589 | <END_RESULT> | |
3590 | <END_TC> | |
3591 | :exmp. | |
3592 | ||
3593 | .*---------------------------------------------------------------------* | |
3594 | :h3.TTCN-3::Assignment->Expression->SingleExpression: ReferencedValue | |
3595 | .*---------------------------------------------------------------------* | |
3596 | :xmp tab=0. | |
3597 | <TC - TTCN-3::Assignment->Expression->SingleExpression: ReferencedValue> | |
3598 | <COMPILE> | |
3599 | <VERDICT_LEAF PASS> | |
3600 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3601 | module ModuleA { | |
3602 | control { | |
3603 | var integer MyVarInteger; | |
3604 | MyVarInteger := 10 + Nonexi01 - 170; | |
3605 | } | |
3606 | } | |
3607 | <END_MODULE> | |
3608 | <RESULT IF_PASS COUNT 1> | |
3609 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3610 | <END_RESULT> | |
3611 | <RESULT IF_PASS COUNT 1> | |
3612 | (?is)\berror: | |
3613 | <END_RESULT> | |
3614 | <RESULT IF_PASS POSITIVE> | |
3615 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3616 | <END_RESULT> | |
3617 | <END_TC> | |
3618 | :exmp. | |
3619 | ||
3620 | .*---------------------------------------------------------------------* | |
3621 | :h3.TTCN-3::Assignment->Expression->SingleExpression: ValueReference->ExtendedFieldReference->Identifier | |
3622 | .*---------------------------------------------------------------------* | |
3623 | :xmp tab=0. | |
3624 | <TC - TTCN-3::Assignment->Expression->SingleExpression: ValueReference->ExtendedFieldReference->Identifier> | |
3625 | <COMPILE> | |
3626 | <VERDICT_LEAF PASS> | |
3627 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3628 | module ModuleA { | |
3629 | type set MyType { | |
3630 | integer field1 | |
3631 | } | |
3632 | control { | |
3633 | var MyType MyCompoundVar; | |
3634 | var integer MyIntegerVar; | |
3635 | // TR 666: Duplicated error message for a non existent field reference | |
3636 | MyIntegerVar := 10 + MyCompoundVar.Nonexi04; | |
3637 | } | |
3638 | } | |
3639 | <END_MODULE> | |
3640 | <RESULT IF_PASS COUNT 1> | |
3641 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
3642 | <END_RESULT> | |
3643 | <RESULT IF_PASS COUNT 1> | |
3644 | (?is)\berror: | |
3645 | <END_RESULT> | |
3646 | <RESULT IF_PASS POSITIVE> | |
3647 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3648 | <END_RESULT> | |
3649 | <END_TC> | |
3650 | :exmp. | |
3651 | ||
3652 | .*---------------------------------------------------------------------* | |
3653 | :h3.TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->CreateOp->ComponentTypeIdentifier | |
3654 | .*---------------------------------------------------------------------* | |
3655 | :xmp tab=0. | |
3656 | <TC - TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->CreateOp->ComponentTypeIdentifier> | |
3657 | <COMPILE> | |
3658 | <VERDICT_LEAF PASS> | |
3659 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3660 | module ModuleA { | |
3661 | type port MyPortType message{ | |
3662 | inout boolean; | |
3663 | } | |
3664 | type component MyComp {port MyPortType MyPort} | |
3665 | function F() runs on MyComp { | |
3666 | var MyComp MyCompVar; | |
3667 | MyCompVar := Nonexi.create; | |
3668 | } | |
3669 | } | |
3670 | <END_MODULE> | |
3671 | <RESULT IF_PASS COUNT 1> | |
3672 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3673 | <END_RESULT> | |
3674 | <RESULT IF_PASS COUNT 1> | |
3675 | (?is)\berror: | |
3676 | <END_RESULT> | |
3677 | <RESULT IF_PASS POSITIVE> | |
3678 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3679 | <END_RESULT> | |
3680 | <END_TC> | |
3681 | :exmp. | |
3682 | ||
3683 | .*---------------------------------------------------------------------* | |
3684 | :h3.TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->Identifier | |
3685 | .*---------------------------------------------------------------------* | |
3686 | :xmp tab=0. | |
3687 | <TC - TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->Identifier> | |
3688 | <COMPILE> | |
3689 | <VERDICT_LEAF PASS> | |
3690 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3691 | module ModuleA { | |
3692 | type port MyPortType message{ | |
3693 | inout boolean; | |
3694 | } | |
3695 | type component MyComp {port MyPortType MyPort} | |
3696 | function F() runs on MyComp { | |
3697 | var boolean MyVarBoolean; | |
3698 | MyVarBoolean := false or Nonexi09.running; | |
3699 | } | |
3700 | } | |
3701 | <END_MODULE> | |
3702 | <RESULT IF_PASS COUNT 1> | |
3703 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3704 | <END_RESULT> | |
3705 | <RESULT IF_PASS COUNT 1> | |
3706 | (?is)\berror: | |
3707 | <END_RESULT> | |
3708 | <RESULT IF_PASS POSITIVE> | |
3709 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3710 | <END_RESULT> | |
3711 | <END_TC> | |
3712 | :exmp. | |
3713 | ||
3714 | .*---------------------------------------------------------------------* | |
3715 | :h3.TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->ExtendedFieldReference->ArrayOrBitRef | |
3716 | .*---------------------------------------------------------------------* | |
3717 | :xmp tab=0. | |
3718 | <TC - TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->ExtendedFieldReference->ArrayOrBitRef> | |
3719 | <COMPILE> | |
3720 | <VERDICT_LEAF PASS> | |
3721 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3722 | module ModuleA { | |
3723 | type component MyComp {timer MyTimer[6]} | |
3724 | function F() runs on MyComp { | |
3725 | var boolean MyVarBoolean; | |
3726 | MyVarBoolean := true and MyTimer[Nonexi10 + 7].running; | |
3727 | } | |
3728 | } | |
3729 | <END_MODULE> | |
3730 | <RESULT IF_PASS COUNT 1> | |
3731 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3732 | <END_RESULT> | |
3733 | <RESULT IF_PASS COUNT 1> | |
3734 | (?is)\berror: | |
3735 | <END_RESULT> | |
3736 | <RESULT IF_PASS POSITIVE> | |
3737 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3738 | <END_RESULT> | |
3739 | <END_TC> | |
3740 | :exmp. | |
3741 | ||
3742 | .*---------------------------------------------------------------------* | |
3743 | :h3.TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->FunctionRef | |
3744 | .*---------------------------------------------------------------------* | |
3745 | :xmp tab=0. | |
3746 | <TC - TTCN-3::Assignment->Expression->SingleExpression: OpCall->ConfigurationOps->RunningOp->ComponentIdentifier->FunctionRef> | |
3747 | <COMPILE> | |
3748 | <VERDICT_LEAF PASS> | |
3749 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3750 | module ModuleA { | |
3751 | type component MyComp {} | |
3752 | function F() runs on MyComp { | |
3753 | var boolean MyVarBoolean; | |
3754 | MyVarBoolean := Nonexi11().running; | |
3755 | } | |
3756 | } | |
3757 | <END_MODULE> | |
3758 | <RESULT IF_PASS COUNT 1> | |
3759 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3760 | <END_RESULT> | |
3761 | <RESULT IF_PASS COUNT 1> | |
3762 | (?is)\berror: | |
3763 | <END_RESULT> | |
3764 | <RESULT IF_PASS POSITIVE> | |
3765 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3766 | <END_RESULT> | |
3767 | <END_TC> | |
3768 | :exmp. | |
3769 | ||
3770 | .*---------------------------------------------------------------------* | |
3771 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TimerOps->ReadTimerOp->Identifier | |
3772 | .*---------------------------------------------------------------------* | |
3773 | :xmp tab=0. | |
3774 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TimerOps->ReadTimerOp->Identifier> | |
3775 | <COMPILE> | |
3776 | <VERDICT_LEAF PASS> | |
3777 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3778 | module ModuleA { | |
3779 | control { | |
3780 | var float MyVarFloat; | |
3781 | MyVarFloat := Nonexi14.read; | |
3782 | } | |
3783 | } | |
3784 | <END_MODULE> | |
3785 | <RESULT IF_PASS COUNT 1> | |
3786 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3787 | <END_RESULT> | |
3788 | <RESULT IF_PASS COUNT 1> | |
3789 | (?is)\berror: | |
3790 | <END_RESULT> | |
3791 | <RESULT IF_PASS POSITIVE> | |
3792 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3793 | <END_RESULT> | |
3794 | <END_TC> | |
3795 | :exmp. | |
3796 | ||
3797 | .*---------------------------------------------------------------------* | |
3798 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TimerOps->ReadTimerOp->ArrayOrBitRef | |
3799 | .*---------------------------------------------------------------------* | |
3800 | :xmp tab=0. | |
3801 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TimerOps->ReadTimerOp->ArrayOrBitRef> | |
3802 | <COMPILE> | |
3803 | <VERDICT_LEAF PASS> | |
3804 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3805 | module ModuleA { | |
3806 | control { | |
3807 | var float MyVarFloat; | |
3808 | timer MyTimer[6..8]; | |
3809 | MyVarFloat := MyTimer[Nonexi15].read; | |
3810 | } | |
3811 | } | |
3812 | <END_MODULE> | |
3813 | <RESULT IF_PASS COUNT 1> | |
3814 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3815 | <END_RESULT> | |
3816 | <RESULT IF_PASS COUNT 1> | |
3817 | (?is)\berror: | |
3818 | <END_RESULT> | |
3819 | <RESULT IF_PASS POSITIVE> | |
3820 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3821 | <END_RESULT> | |
3822 | <END_TC> | |
3823 | :exmp. | |
3824 | ||
3825 | .*---------------------------------------------------------------------* | |
3826 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TimerOps->RunningTimerOp->Identifier | |
3827 | .*---------------------------------------------------------------------* | |
3828 | :xmp tab=0. | |
3829 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TimerOps->RunningTimerOp->Identifier> | |
3830 | <COMPILE> | |
3831 | <VERDICT_LEAF PASS> | |
3832 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3833 | module ModuleA { | |
3834 | control { | |
3835 | var boolean MyVarBoolean; | |
3836 | MyVarBoolean := true and Nonexi16.running; | |
3837 | } | |
3838 | } | |
3839 | <END_MODULE> | |
3840 | <RESULT IF_PASS COUNT 1> | |
3841 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3842 | <END_RESULT> | |
3843 | <RESULT IF_PASS COUNT 1> | |
3844 | (?is)\berror: | |
3845 | <END_RESULT> | |
3846 | <RESULT IF_PASS POSITIVE> | |
3847 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3848 | <END_RESULT> | |
3849 | <END_TC> | |
3850 | :exmp. | |
3851 | ||
3852 | .*---------------------------------------------------------------------* | |
3853 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TimerOps->RunningTimerOp->ArrayOrBitRef | |
3854 | .*---------------------------------------------------------------------* | |
3855 | :xmp tab=0. | |
3856 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TimerOps->RunningTimerOp->ArrayOrBitRef> | |
3857 | <COMPILE> | |
3858 | <VERDICT_LEAF PASS> | |
3859 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3860 | module ModuleA { | |
3861 | control { | |
3862 | var boolean MyVarBoolean; | |
3863 | timer MyTimer[5..9999]; | |
3864 | MyVarBoolean := MyTimer[Nonexi17].running or MyTimer[7].running; | |
3865 | } | |
3866 | } | |
3867 | <END_MODULE> | |
3868 | <RESULT IF_PASS COUNT 1> | |
3869 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3870 | <END_RESULT> | |
3871 | <RESULT IF_PASS COUNT 1> | |
3872 | (?is)\berror: | |
3873 | <END_RESULT> | |
3874 | <RESULT IF_PASS POSITIVE> | |
3875 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3876 | <END_RESULT> | |
3877 | <END_TC> | |
3878 | :exmp. | |
3879 | ||
3880 | .*---------------------------------------------------------------------* | |
3881 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TestcaseInstance->Identifier | |
3882 | .*---------------------------------------------------------------------* | |
3883 | :xmp tab=0. | |
3884 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TestcaseInstance->Identifier> | |
3885 | <COMPILE> | |
3886 | <VERDICT_LEAF PASS> | |
3887 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3888 | module ModuleA { | |
3889 | control { | |
3890 | var verdicttype MyVarVerdict; | |
3891 | MyVarVerdict := execute(Nonexi18(1),1.2); | |
3892 | } | |
3893 | } | |
3894 | <END_MODULE> | |
3895 | <RESULT IF_PASS COUNT 1> | |
3896 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3897 | <END_RESULT> | |
3898 | <RESULT IF_PASS COUNT 1> | |
3899 | (?is)\berror: | |
3900 | <END_RESULT> | |
3901 | <RESULT IF_PASS POSITIVE> | |
3902 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3903 | <END_RESULT> | |
3904 | <END_TC> | |
3905 | :exmp. | |
3906 | ||
3907 | .*---------------------------------------------------------------------* | |
3908 | :h3.TTCN-3::Assignment->Expression->SingleExpression: TestcaseInstance->TimerValue | |
3909 | .*---------------------------------------------------------------------* | |
3910 | :xmp tab=0. | |
3911 | <TC - TTCN-3::Assignment->Expression->SingleExpression: TestcaseInstance->TimerValue> | |
3912 | <COMPILE> | |
3913 | <VERDICT_LEAF PASS> | |
3914 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3915 | module ModuleA { | |
3916 | type component MyComp {} | |
3917 | testcase MyTC() runs on MyComp { setverdict(pass); } | |
3918 | control { | |
3919 | var verdicttype MyVarVerdict; | |
3920 | MyVarVerdict := execute(MyTC(),Nonexi * 10.0); | |
3921 | } | |
3922 | } | |
3923 | <END_MODULE> | |
3924 | <RESULT IF_PASS COUNT 1> | |
3925 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3926 | <END_RESULT> | |
3927 | <RESULT IF_PASS COUNT 1> | |
3928 | (?is)\berror: | |
3929 | <END_RESULT> | |
3930 | <RESULT IF_PASS POSITIVE> | |
3931 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3932 | <END_RESULT> | |
3933 | <END_TC> | |
3934 | :exmp. | |
3935 | ||
3936 | .*---------------------------------------------------------------------* | |
3937 | :h3.TTCN-3::Assignment->Expression->SingleExpression: FunctionInstance->Identifier | |
3938 | .*---------------------------------------------------------------------* | |
3939 | :xmp tab=0. | |
3940 | <TC - TTCN-3::Assignment->Expression->SingleExpression: FunctionInstance->Identifier> | |
3941 | <COMPILE> | |
3942 | <VERDICT_LEAF PASS> | |
3943 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3944 | module ModuleA { | |
3945 | control { | |
3946 | var boolean MyVarBoolean; | |
3947 | MyVarBoolean := Nonexi22(false,7,8,8,8,10, 1); | |
3948 | } | |
3949 | } | |
3950 | <END_MODULE> | |
3951 | <RESULT IF_PASS COUNT 1> | |
3952 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3953 | <END_RESULT> | |
3954 | <RESULT IF_PASS COUNT 1> | |
3955 | (?is)\berror: | |
3956 | <END_RESULT> | |
3957 | <RESULT IF_PASS POSITIVE> | |
3958 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3959 | <END_RESULT> | |
3960 | <END_TC> | |
3961 | :exmp. | |
3962 | ||
3963 | .*---------------------------------------------------------------------* | |
3964 | :h3.TTCN-3::Assignment->Expression->SingleExpression: FunctionInstance->Identifier | |
3965 | .*---------------------------------------------------------------------* | |
3966 | Covered already with 'expression' and 'TemplateInstance'. | |
3967 | ||
3968 | .*---------------------------------------------------------------------* | |
3969 | :h3.TTCN-3::Assignment->Expression->SingleExpression: ActivateOp->AltstepRef->Identifier | |
3970 | .*---------------------------------------------------------------------* | |
3971 | :xmp tab=0. | |
3972 | <TC - TTCN-3::Assignment->Expression->SingleExpression: ActivateOp->AltstepRef->Identifier> | |
3973 | <COMPILE> | |
3974 | <VERDICT_LEAF PASS> | |
3975 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
3976 | module ModuleA { | |
3977 | type component MyComp {} | |
3978 | function F() runs on MyComp { | |
3979 | var default MyVarDefault; | |
3980 | MyVarDefault := activate(Nonexi25()); | |
3981 | } | |
3982 | } | |
3983 | <END_MODULE> | |
3984 | <RESULT IF_PASS COUNT 1> | |
3985 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
3986 | <END_RESULT> | |
3987 | <RESULT IF_PASS COUNT 1> | |
3988 | (?is)\berror: | |
3989 | <END_RESULT> | |
3990 | <RESULT IF_PASS POSITIVE> | |
3991 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
3992 | <END_RESULT> | |
3993 | <END_TC> | |
3994 | :exmp. | |
3995 | ||
3996 | .*---------------------------------------------------------------------* | |
3997 | :h3.TTCN-3::Assignment->Expression->CompoundExpression: FieldExpressionList | |
3998 | .*---------------------------------------------------------------------* | |
3999 | :xmp tab=0. | |
4000 | <TC - TTCN-3::Assignment->Expression->CompoundExpression: FieldExpressionList> | |
4001 | <COMPILE> | |
4002 | <VERDICT_LEAF PASS> | |
4003 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4004 | module ModuleA.objid {0 4 0} { | |
4005 | type record of integer Embedded; | |
4006 | type record MyType { | |
4007 | integer field1 | |
4008 | } | |
4009 | // FieldExpressionList | |
4010 | // Others are covered by expression | |
4011 | const MyType MyConstType := { | |
4012 | field1 := 77 + 1 - 22 / 2 * 23 + Nonexi01 | |
4013 | } | |
4014 | } | |
4015 | <END_MODULE> | |
4016 | <RESULT IF_PASS COUNT 1> | |
4017 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4018 | <END_RESULT> | |
4019 | <RESULT IF_PASS COUNT 1> | |
4020 | (?is)\berror: | |
4021 | <END_RESULT> | |
4022 | <RESULT IF_PASS POSITIVE> | |
4023 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4024 | <END_RESULT> | |
4025 | <END_TC> | |
4026 | :exmp. | |
4027 | ||
4028 | .*---------------------------------------------------------------------* | |
4029 | :h3.TTCN-3::Assignment->Expression->CompoundExpression: ArrayExpression | |
4030 | .*---------------------------------------------------------------------* | |
4031 | :xmp tab=0. | |
4032 | <TC - TTCN-3::Assignment->Expression->CompoundExpression: ArrayExpression> | |
4033 | <COMPILE> | |
4034 | <VERDICT_LEAF PASS> | |
4035 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4036 | module ModuleA.objid {0 4 0} { | |
4037 | control { | |
4038 | // ArrayExpression | |
4039 | // Others are covered by expression | |
4040 | var integer MyVarInteger[2][3] := {{ 1,2, Nonexi01 }, Nonexi02}; | |
4041 | } | |
4042 | } | |
4043 | <END_MODULE> | |
4044 | <RESULT IF_PASS COUNT 2> | |
4045 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4046 | <END_RESULT> | |
4047 | <RESULT IF_PASS COUNT 2> | |
4048 | (?is)\berror: | |
4049 | <END_RESULT> | |
4050 | <RESULT IF_PASS POSITIVE> | |
4051 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4052 | <END_RESULT> | |
4053 | <END_TC> | |
4054 | :exmp. | |
4055 | ||
4056 | .*---------------------------------------------------------------------* | |
4057 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Module Identifier | |
4058 | .*---------------------------------------------------------------------* | |
4059 | :xmp tab=0. | |
4060 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Module Identifier> | |
4061 | <COMPILE> | |
4062 | <VERDICT_LEAF PASS> | |
4063 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4064 | module ModuleA { | |
4065 | const integer c1 := 2 + Nonexi01.Nonexi; | |
4066 | } | |
4067 | <END_MODULE> | |
4068 | <RESULT IF_PASS COUNT 1> | |
4069 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4070 | <END_RESULT> | |
4071 | <RESULT IF_PASS COUNT 1> | |
4072 | (?is)\berror: | |
4073 | <END_RESULT> | |
4074 | <RESULT IF_PASS POSITIVE> | |
4075 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4076 | <END_RESULT> | |
4077 | <END_TC> | |
4078 | :exmp. | |
4079 | ||
4080 | .*---------------------------------------------------------------------* | |
4081 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Referenced Identifier | |
4082 | .*---------------------------------------------------------------------* | |
4083 | :xmp tab=0. | |
4084 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Referenced Identifier> | |
4085 | <COMPILE> | |
4086 | <VERDICT_LEAF PASS> | |
4087 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4088 | module ModuleA { | |
4089 | const integer c1 := 2 + ModuleA.Nonexi02; | |
4090 | } | |
4091 | <END_MODULE> | |
4092 | <RESULT IF_PASS COUNT 1> | |
4093 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4094 | <END_RESULT> | |
4095 | <RESULT IF_PASS COUNT 1> | |
4096 | (?is)\berror: | |
4097 | <END_RESULT> | |
4098 | <RESULT IF_PASS POSITIVE> | |
4099 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4100 | <END_RESULT> | |
4101 | <END_TC> | |
4102 | :exmp. | |
4103 | ||
4104 | .*---------------------------------------------------------------------* | |
4105 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->ObjId | |
4106 | .*---------------------------------------------------------------------* | |
4107 | :xmp tab=0. | |
4108 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->ObjId> | |
4109 | <COMPILE> | |
4110 | <VERDICT_LEAF FAIL> | |
4111 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4112 | module ModuleA { | |
4113 | // NOTE: SA is not performed for objid values | |
4114 | const integer c1 := 2 + ModuleA.objid {0 4 Nonexi}.c0; | |
4115 | const integer c0 := 0; | |
4116 | } | |
4117 | <END_MODULE> | |
4118 | <RESULT IF_PASS COUNT 1> | |
4119 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4120 | <END_RESULT> | |
4121 | <RESULT IF_PASS COUNT 1> | |
4122 | (?is)\berror: | |
4123 | <END_RESULT> | |
4124 | <RESULT IF_PASS POSITIVE> | |
4125 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4126 | <END_RESULT> | |
4127 | <RESULT IF_FAIL NEGATIVE> | |
4128 | (?im)\berror\b | |
4129 | <END_RESULT> | |
4130 | <END_TC> | |
4131 | :exmp. | |
4132 | ||
4133 | .*---------------------------------------------------------------------* | |
4134 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->NumberForm->ReferencedValue | |
4135 | .*---------------------------------------------------------------------* | |
4136 | :xmp tab=0. | |
4137 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->NumberForm->ReferencedValue> | |
4138 | <COMPILE> | |
4139 | <VERDICT_LEAF FAIL> | |
4140 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4141 | module ModuleA { | |
4142 | type record of integer Embedded; | |
4143 | type record MyType { | |
4144 | integer field1, | |
4145 | Embedded field2 | |
4146 | } | |
4147 | const integer c0 := 0; | |
4148 | const MyType MyConst2 := { field1 := 4, field2 := { 0,1,2,3,4 } }; | |
4149 | // NOTE: SA is not performed for objid values | |
4150 | const integer c4 := 2 + ModuleA.objid {0 4 MyConst2.Nonexi04}.c0; | |
4151 | const integer c5 := 2 + ModuleA.objid {0 4 MyConst2.field2[Nonexi05]}.c0; | |
4152 | } | |
4153 | <END_MODULE> | |
4154 | <RESULT IF_PASS COUNT 2> | |
4155 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4156 | <END_RESULT> | |
4157 | <RESULT IF_PASS COUNT 2> | |
4158 | (?is)\berror: | |
4159 | <END_RESULT> | |
4160 | <RESULT IF_PASS POSITIVE> | |
4161 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4162 | <END_RESULT> | |
4163 | <RESULT IF_FAIL NEGATIVE> | |
4164 | (?im)\berror\b | |
4165 | <END_RESULT> | |
4166 | <END_TC> | |
4167 | :exmp. | |
4168 | ||
4169 | .*---------------------------------------------------------------------* | |
4170 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Embedded form | |
4171 | .*---------------------------------------------------------------------* | |
4172 | :xmp tab=0. | |
4173 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->Embedded form> | |
4174 | <COMPILE> | |
4175 | <VERDICT_LEAF FAIL> | |
4176 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4177 | module ModuleA { | |
4178 | type record of integer Embedded; | |
4179 | type record MyType { | |
4180 | integer field1, | |
4181 | Embedded field2 | |
4182 | } | |
4183 | const integer c0 := 0; | |
4184 | const MyType MyConst2 := { field1 := 4, field2 := { 0,1,2,3,4 } }; | |
4185 | // NOTE: SA is not performed for objid values | |
4186 | const integer c8 := 2 + ModuleA.objid {0 4 ModuleA.objid | |
4187 | {0 4 ModuleA.objid {0 4 MyConst2.field2[Nonexi08]}.c0}.c0}.c0; | |
4188 | } | |
4189 | <END_MODULE> | |
4190 | <RESULT IF_PASS COUNT 1> | |
4191 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4192 | <END_RESULT> | |
4193 | <RESULT IF_PASS COUNT 1> | |
4194 | (?is)\berror: | |
4195 | <END_RESULT> | |
4196 | <RESULT IF_PASS POSITIVE> | |
4197 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4198 | <END_RESULT> | |
4199 | <RESULT IF_FAIL NEGATIVE> | |
4200 | (?im)\berror\b | |
4201 | <END_RESULT> | |
4202 | <END_TC> | |
4203 | :exmp. | |
4204 | ||
4205 | .*---------------------------------------------------------------------* | |
4206 | :h3.TTCN-3::Expression->GlobalModuleId: GlobalModuleId->NameAndNumberForm | |
4207 | .*---------------------------------------------------------------------* | |
4208 | :xmp tab=0. | |
4209 | <TC - TTCN-3::Expression->GlobalModuleId: GlobalModuleId->NameAndNumberForm> | |
4210 | <COMPILE> | |
4211 | <VERDICT_LEAF FAIL> | |
4212 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4213 | module ModuleA { | |
4214 | // NOTE: SA is not performed for objid values | |
4215 | const integer c0 := 0; | |
4216 | const integer c9 := 2 + ModuleA.objid {itu_t(Nonexi09) 4 0}.c0; | |
4217 | } | |
4218 | <END_MODULE> | |
4219 | <RESULT IF_PASS COUNT 1> | |
4220 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4221 | <END_RESULT> | |
4222 | <RESULT IF_PASS COUNT 1> | |
4223 | (?is)\berror: | |
4224 | <END_RESULT> | |
4225 | <RESULT IF_PASS POSITIVE> | |
4226 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4227 | <END_RESULT> | |
4228 | <RESULT IF_FAIL NEGATIVE> | |
4229 | (?im)\berror\b | |
4230 | <END_RESULT> | |
4231 | <END_TC> | |
4232 | :exmp. | |
4233 | ||
4234 | .*---------------------------------------------------------------------* | |
4235 | :h3.TTCN-3::Expression->VariableRef: VarIdentifier | |
4236 | .*---------------------------------------------------------------------* | |
4237 | :xmp tab=0. | |
4238 | <TC - TTCN-3::Expression->VariableRef: VarIdentifier> | |
4239 | <COMPILE> | |
4240 | <VERDICT_LEAF PASS> | |
4241 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4242 | module ModuleA { | |
4243 | control { | |
4244 | // VarIdentifier | |
4245 | var integer MyVar; | |
4246 | MyVar := 2 + Nonexi01; | |
4247 | } | |
4248 | } | |
4249 | <END_MODULE> | |
4250 | <RESULT IF_PASS COUNT 1> | |
4251 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4252 | <END_RESULT> | |
4253 | <RESULT IF_PASS COUNT 1> | |
4254 | (?is)\berror: | |
4255 | <END_RESULT> | |
4256 | <RESULT IF_PASS POSITIVE> | |
4257 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4258 | <END_RESULT> | |
4259 | <END_TC> | |
4260 | :exmp. | |
4261 | ||
4262 | .*---------------------------------------------------------------------* | |
4263 | :h3.TTCN-3::Expression->VariableRef: ExtendedFieldReference | |
4264 | .*---------------------------------------------------------------------* | |
4265 | :xmp tab=0. | |
4266 | <TC - TTCN-3::Expression->VariableRef: ExtendedFieldReference> | |
4267 | <COMPILE> | |
4268 | <VERDICT_LEAF PASS> | |
4269 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4270 | module ModuleA { | |
4271 | type record of integer Embedded; | |
4272 | type record MyType { | |
4273 | integer field1, | |
4274 | Embedded field2 | |
4275 | } | |
4276 | control { | |
4277 | var MyType MyVar; | |
4278 | MyVar.field1 := 2 + MyVar.Nonexi02; | |
4279 | MyVar.field2[0] := 2 + MyVar.field2[2 + Nonexi03]; | |
4280 | } | |
4281 | } | |
4282 | <END_MODULE> | |
4283 | <RESULT IF_PASS COUNT 1> | |
4284 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4285 | <END_RESULT> | |
4286 | <RESULT IF_PASS COUNT 1> | |
4287 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi | |
4288 | <END_RESULT> | |
4289 | <RESULT IF_PASS COUNT 2> | |
4290 | (?is)\berror: | |
4291 | <END_RESULT> | |
4292 | <RESULT IF_PASS POSITIVE> | |
4293 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4294 | <END_RESULT> | |
4295 | <END_TC> | |
4296 | :exmp. | |
4297 | ||
4298 | .*---------------------------------------------------------------------* | |
4299 | :h3.TTCN-3::Expression->FunctionRef: FunctionIdentifier | |
4300 | .*---------------------------------------------------------------------* | |
4301 | :xmp tab=0. | |
4302 | <TC - TTCN-3::Expression->FunctionRef: FunctionIdentifier> | |
4303 | <COMPILE> | |
4304 | <VERDICT_LEAF PASS> | |
4305 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4306 | module ModuleA { | |
4307 | type record MyType { float field1 } | |
4308 | control { | |
4309 | var MyType MyVar; | |
4310 | MyVar.field1 := 2.0 + Nonexi01(); | |
4311 | } | |
4312 | } | |
4313 | <END_MODULE> | |
4314 | <RESULT IF_PASS COUNT 1> | |
4315 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4316 | <END_RESULT> | |
4317 | <RESULT IF_PASS COUNT 1> | |
4318 | (?is)\berror: | |
4319 | <END_RESULT> | |
4320 | <RESULT IF_PASS POSITIVE> | |
4321 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4322 | <END_RESULT> | |
4323 | <END_TC> | |
4324 | :exmp. | |
4325 | ||
4326 | .*---------------------------------------------------------------------* | |
4327 | :h3.TTCN-3::Expression->AltstepRef: AltstepIdentifier | |
4328 | .*---------------------------------------------------------------------* | |
4329 | :xmp tab=0. | |
4330 | <TC - TTCN-3::Expression->AltstepRef: AltstepIdentifier> | |
4331 | <COMPILE> | |
4332 | <VERDICT_LEAF PASS> | |
4333 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4334 | module ModuleA { | |
4335 | control { | |
4336 | alt { | |
4337 | [] Nonexi01() {} | |
4338 | } | |
4339 | } | |
4340 | } | |
4341 | <END_MODULE> | |
4342 | <RESULT IF_PASS COUNT 1> | |
4343 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4344 | <END_RESULT> | |
4345 | <RESULT IF_PASS COUNT 1> | |
4346 | (?is)\berror: | |
4347 | <END_RESULT> | |
4348 | <RESULT IF_PASS POSITIVE> | |
4349 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4350 | <END_RESULT> | |
4351 | <END_TC> | |
4352 | :exmp. | |
4353 | ||
4354 | .*---------------------------------------------------------------------* | |
4355 | :h3.TTCN-3::ModuleParDef: Type | |
4356 | .*---------------------------------------------------------------------* | |
4357 | :xmp tab=0. | |
4358 | <TC - TTCN-3::ModuleParDef: Type> | |
4359 | <COMPILE> | |
4360 | <VERDICT_LEAF PASS> | |
4361 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4362 | module ModuleA { | |
4363 | modulepar { | |
4364 | // Type | |
4365 | Nonexi01 MyPar1; | |
4366 | } | |
4367 | } | |
4368 | <END_MODULE> | |
4369 | <RESULT IF_PASS COUNT 1> | |
4370 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4371 | <END_RESULT> | |
4372 | <RESULT IF_PASS COUNT 1> | |
4373 | (?is)\berror: | |
4374 | <END_RESULT> | |
4375 | <RESULT IF_PASS POSITIVE> | |
4376 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4377 | <END_RESULT> | |
4378 | <END_TC> | |
4379 | :exmp. | |
4380 | ||
4381 | .*---------------------------------------------------------------------* | |
4382 | :h3.TTCN-3::ModuleParDef: ConstantExpression | |
4383 | .*---------------------------------------------------------------------* | |
4384 | :xmp tab=0. | |
4385 | <TC - TTCN-3::ModuleParDef: ConstantExpression> | |
4386 | <COMPILE> | |
4387 | <VERDICT_LEAF PASS> | |
4388 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4389 | module ModuleA { | |
4390 | modulepar { | |
4391 | integer MyPar5 := 0 + Nonexi05 | |
4392 | // Others are covered in 'expression' | |
4393 | } | |
4394 | } | |
4395 | <END_MODULE> | |
4396 | <RESULT IF_PASS COUNT 1> | |
4397 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4398 | <END_RESULT> | |
4399 | <RESULT IF_PASS COUNT 1> | |
4400 | (?is)\berror: | |
4401 | <END_RESULT> | |
4402 | <RESULT IF_PASS POSITIVE> | |
4403 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4404 | <END_RESULT> | |
4405 | <END_TC> | |
4406 | :exmp. | |
4407 | ||
4408 | .*---------------------------------------------------------------------* | |
4409 | :h3.TTCN-3::ConstDef: Type | |
4410 | .*---------------------------------------------------------------------* | |
4411 | :xmp tab=0. | |
4412 | <TC - TTCN-3::ConstDef: Type> | |
4413 | <COMPILE> | |
4414 | <VERDICT_LEAF PASS> | |
4415 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4416 | module ModuleA { | |
4417 | // basic type | |
4418 | const Nonexi01 MyConst1 := 10; | |
4419 | } | |
4420 | <END_MODULE> | |
4421 | <RESULT IF_PASS COUNT 1> | |
4422 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4423 | <END_RESULT> | |
4424 | <RESULT IF_PASS COUNT 1> | |
4425 | (?is)\berror: | |
4426 | <END_RESULT> | |
4427 | <RESULT IF_PASS POSITIVE> | |
4428 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4429 | <END_RESULT> | |
4430 | <END_TC> | |
4431 | :exmp. | |
4432 | ||
4433 | .*---------------------------------------------------------------------* | |
4434 | :h3.TTCN-3::ConstDef: ExtendedFieldReference->ArrayOrBitRef | |
4435 | .*---------------------------------------------------------------------* | |
4436 | :xmp tab=0. | |
4437 | <TC - TTCN-3::ConstDef: ExtendedFieldReference->ArrayOrBitRef> | |
4438 | <COMPILE> | |
4439 | <VERDICT_LEAF PASS> | |
4440 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4441 | module ModuleA { | |
4442 | // TR 608: More than one error message is shown for a situation | |
4443 | const integer MyConst[666-Nonexi05] := { 10 }; | |
4444 | } | |
4445 | <END_MODULE> | |
4446 | <RESULT IF_PASS COUNT 1> | |
4447 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4448 | <END_RESULT> | |
4449 | <RESULT IF_PASS COUNT 1> | |
4450 | (?is)\berror: | |
4451 | <END_RESULT> | |
4452 | <RESULT IF_PASS POSITIVE> | |
4453 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4454 | <END_RESULT> | |
4455 | <RESULT IF_FAIL COUNT 1> | |
4456 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4457 | <END_RESULT> | |
4458 | <RESULT IF_FAIL COUNT 1> | |
4459 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
4460 | <END_RESULT> | |
4461 | <RESULT IF_FAIL COUNT 2> | |
4462 | (?is)\berror: | |
4463 | <END_RESULT> | |
4464 | <RESULT IF_FAIL POSITIVE> | |
4465 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4466 | <END_RESULT> | |
4467 | <END_TC> | |
4468 | :exmp. | |
4469 | ||
4470 | .*---------------------------------------------------------------------* | |
4471 | :h3.TTCN-3::ConstDef: Expression in RVALUE | |
4472 | .*---------------------------------------------------------------------* | |
4473 | :xmp tab=0. | |
4474 | <TC - TTCN-3::ConstDef: Expression in RVALUE> | |
4475 | <COMPILE> | |
4476 | <VERDICT_LEAF PASS> | |
4477 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4478 | module ModuleA { | |
4479 | const integer MyConst6 := 100, | |
4480 | MyConst7 := Nonexi06; | |
4481 | // Others are covered in 'expression' | |
4482 | } | |
4483 | <END_MODULE> | |
4484 | <RESULT IF_PASS COUNT 1> | |
4485 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4486 | <END_RESULT> | |
4487 | <RESULT IF_PASS COUNT 1> | |
4488 | (?is)\berror: | |
4489 | <END_RESULT> | |
4490 | <RESULT IF_PASS POSITIVE> | |
4491 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4492 | <END_RESULT> | |
4493 | <END_TC> | |
4494 | :exmp. | |
4495 | ||
4496 | .*---------------------------------------------------------------------* | |
4497 | :h3.TTCN-3::TemplateDef: ReferencedType | |
4498 | .*---------------------------------------------------------------------* | |
4499 | :xmp tab=0. | |
4500 | <TC - TTCN-3::TemplateDef: ReferencedType> | |
4501 | <COMPILE> | |
4502 | <VERDICT_LEAF PASS> | |
4503 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4504 | module ModuleA { | |
4505 | template Nonexi01 MyTemplate1 := 10; | |
4506 | } | |
4507 | <END_MODULE> | |
4508 | <RESULT IF_PASS COUNT 1> | |
4509 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4510 | <END_RESULT> | |
4511 | <RESULT IF_PASS COUNT 1> | |
4512 | (?is)\berror: | |
4513 | <END_RESULT> | |
4514 | <RESULT IF_PASS POSITIVE> | |
4515 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4516 | <END_RESULT> | |
4517 | <END_TC> | |
4518 | :exmp. | |
4519 | ||
4520 | .*---------------------------------------------------------------------* | |
4521 | :h3.TTCN-3::TemplateDef: TemplateFormalParList | |
4522 | .*---------------------------------------------------------------------* | |
4523 | :xmp tab=0. | |
4524 | <TC - TTCN-3::TemplateDef: TemplateFormalParList> | |
4525 | <COMPILE> | |
4526 | <VERDICT_LEAF PASS> | |
4527 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4528 | module ModuleA { | |
4529 | template integer MyTemplate5(Nonexi05 InPar1) := 10; | |
4530 | } | |
4531 | <END_MODULE> | |
4532 | <RESULT IF_PASS COUNT 1> | |
4533 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4534 | <END_RESULT> | |
4535 | <RESULT IF_PASS COUNT 1> | |
4536 | (?is)\berror: | |
4537 | <END_RESULT> | |
4538 | <RESULT IF_PASS POSITIVE> | |
4539 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4540 | <END_RESULT> | |
4541 | <END_TC> | |
4542 | :exmp. | |
4543 | ||
4544 | .*---------------------------------------------------------------------* | |
4545 | :h3.TTCN-3::TemplateDef: DerivedDef->Identifier | |
4546 | .*---------------------------------------------------------------------* | |
4547 | :xmp tab=0. | |
4548 | <TC - TTCN-3::TemplateDef: DerivedDef->Identifier> | |
4549 | <COMPILE> | |
4550 | <VERDICT_LEAF PASS> | |
4551 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4552 | module ModuleA { | |
4553 | template integer MyTemplate6 modifies Nonexi06 := 10; | |
4554 | } | |
4555 | <END_MODULE> | |
4556 | <RESULT IF_PASS COUNT 1> | |
4557 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4558 | <END_RESULT> | |
4559 | <RESULT IF_PASS COUNT 1> | |
4560 | (?is)\berror: | |
4561 | <END_RESULT> | |
4562 | <RESULT IF_PASS POSITIVE> | |
4563 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4564 | <END_RESULT> | |
4565 | <END_TC> | |
4566 | :exmp. | |
4567 | ||
4568 | .*---------------------------------------------------------------------* | |
4569 | :h3.TTCN-3::TemplateDef: TemplateBody->Expression | |
4570 | .*---------------------------------------------------------------------* | |
4571 | :xmp tab=0. | |
4572 | <TC - TTCN-3::TemplateDef: TemplateBody->Expression> | |
4573 | <COMPILE> | |
4574 | <VERDICT_LEAF PASS> | |
4575 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4576 | module ModuleA { | |
4577 | template integer MyTemplate10 := 55 - Nonexi10; | |
4578 | // Others are covered in 'expression' | |
4579 | } | |
4580 | <END_MODULE> | |
4581 | <RESULT IF_PASS COUNT 1> | |
4582 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4583 | <END_RESULT> | |
4584 | <RESULT IF_PASS COUNT 1> | |
4585 | (?is)\berror: | |
4586 | <END_RESULT> | |
4587 | <RESULT IF_PASS POSITIVE> | |
4588 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4589 | <END_RESULT> | |
4590 | <END_TC> | |
4591 | :exmp. | |
4592 | ||
4593 | .*---------------------------------------------------------------------* | |
4594 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Complement | |
4595 | .*---------------------------------------------------------------------* | |
4596 | :xmp tab=0. | |
4597 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Complement> | |
4598 | <COMPILE> | |
4599 | <VERDICT_LEAF PASS> | |
4600 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4601 | module ModuleA { | |
4602 | template integer MyTemplate11 := complement (10, Nonexi11); | |
4603 | } | |
4604 | <END_MODULE> | |
4605 | <RESULT IF_PASS COUNT 1> | |
4606 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4607 | <END_RESULT> | |
4608 | <RESULT IF_PASS COUNT 1> | |
4609 | (?is)\berror: | |
4610 | <END_RESULT> | |
4611 | <RESULT IF_PASS POSITIVE> | |
4612 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4613 | <END_RESULT> | |
4614 | <END_TC> | |
4615 | :exmp. | |
4616 | ||
4617 | .*---------------------------------------------------------------------* | |
4618 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ValueOrAttribList | |
4619 | .*---------------------------------------------------------------------* | |
4620 | :xmp tab=0. | |
4621 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ValueOrAttribList> | |
4622 | <COMPILE> | |
4623 | <VERDICT_LEAF PASS> | |
4624 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4625 | module ModuleA { | |
4626 | template integer MyTemplate12 := (10, Nonexi12); | |
4627 | } | |
4628 | <END_MODULE> | |
4629 | <RESULT IF_PASS COUNT 1> | |
4630 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4631 | <END_RESULT> | |
4632 | <RESULT IF_PASS COUNT 1> | |
4633 | (?is)\berror: | |
4634 | <END_RESULT> | |
4635 | <RESULT IF_PASS POSITIVE> | |
4636 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4637 | <END_RESULT> | |
4638 | <END_TC> | |
4639 | :exmp. | |
4640 | ||
4641 | .*---------------------------------------------------------------------* | |
4642 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Range | |
4643 | .*---------------------------------------------------------------------* | |
4644 | :xmp tab=0. | |
4645 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Range> | |
4646 | <COMPILE> | |
4647 | <VERDICT_LEAF PASS> | |
4648 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4649 | module ModuleA { | |
4650 | template integer MyTemplate13 := (10 .. Nonexi13); | |
4651 | } | |
4652 | <END_MODULE> | |
4653 | <RESULT IF_PASS COUNT 1> | |
4654 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4655 | <END_RESULT> | |
4656 | <RESULT IF_PASS COUNT 1> | |
4657 | (?is)\berror: | |
4658 | <END_RESULT> | |
4659 | <RESULT IF_PASS POSITIVE> | |
4660 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4661 | <END_RESULT> | |
4662 | <END_TC> | |
4663 | :exmp. | |
4664 | ||
4665 | .*---------------------------------------------------------------------* | |
4666 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SubsetMatch | |
4667 | .*---------------------------------------------------------------------* | |
4668 | :xmp tab=0. | |
4669 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SubsetMatch> | |
4670 | <COMPILE> | |
4671 | <VERDICT_LEAF PASS> | |
4672 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4673 | module ModuleA { | |
4674 | type set of integer MyType; | |
4675 | template MyType MyTemplate14 := subset (10, Nonexi14); | |
4676 | } | |
4677 | <END_MODULE> | |
4678 | <RESULT IF_PASS COUNT 1> | |
4679 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4680 | <END_RESULT> | |
4681 | <RESULT IF_PASS COUNT 1> | |
4682 | (?is)\berror: | |
4683 | <END_RESULT> | |
4684 | <RESULT IF_PASS POSITIVE> | |
4685 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4686 | <END_RESULT> | |
4687 | <END_TC> | |
4688 | :exmp. | |
4689 | ||
4690 | .*---------------------------------------------------------------------* | |
4691 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SupersetMatch | |
4692 | .*---------------------------------------------------------------------* | |
4693 | :xmp tab=0. | |
4694 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SupersetMatch> | |
4695 | <COMPILE> | |
4696 | <VERDICT_LEAF PASS> | |
4697 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4698 | module ModuleA { | |
4699 | type set of integer MyType; | |
4700 | template MyType MyTemplate15 := superset (10, Nonexi15); | |
4701 | } | |
4702 | <END_MODULE> | |
4703 | <RESULT IF_PASS COUNT 1> | |
4704 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4705 | <END_RESULT> | |
4706 | <RESULT IF_PASS COUNT 1> | |
4707 | (?is)\berror: | |
4708 | <END_RESULT> | |
4709 | <RESULT IF_PASS POSITIVE> | |
4710 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4711 | <END_RESULT> | |
4712 | <END_TC> | |
4713 | :exmp. | |
4714 | ||
4715 | .*---------------------------------------------------------------------* | |
4716 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->PermutationMatch | |
4717 | .*---------------------------------------------------------------------* | |
4718 | :xmp tab=0. | |
4719 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->PermutationMatch> | |
4720 | <COMPILE> | |
4721 | <VERDICT_LEAF PASS> | |
4722 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4723 | module ModuleA { | |
4724 | type record of integer MyType2; | |
4725 | // TR 609: fatal error if permutation is used for integer template | |
4726 | // template integer MyTemplate16 := permutation (10, Nonexi16); | |
4727 | template MyType2 MyTemplate16 := { permutation (1,2,3,Nonexi16)}; | |
4728 | } | |
4729 | <END_MODULE> | |
4730 | <RESULT IF_PASS COUNT 1> | |
4731 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4732 | <END_RESULT> | |
4733 | <RESULT IF_PASS COUNT 1> | |
4734 | (?is)\berror: | |
4735 | <END_RESULT> | |
4736 | <RESULT IF_PASS POSITIVE> | |
4737 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4738 | <END_RESULT> | |
4739 | <END_TC> | |
4740 | :exmp. | |
4741 | ||
4742 | .*---------------------------------------------------------------------* | |
4743 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch | |
4744 | .*---------------------------------------------------------------------* | |
4745 | :xmp tab=0. | |
4746 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch> | |
4747 | <COMPILE> | |
4748 | <VERDICT_LEAF PASS> | |
4749 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4750 | module ModuleA { | |
4751 | template charstring MyTemplate17 := * length (5+Nonexi17); | |
4752 | } | |
4753 | <END_MODULE> | |
4754 | <RESULT IF_PASS COUNT 1> | |
4755 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4756 | <END_RESULT> | |
4757 | <RESULT IF_PASS COUNT 1> | |
4758 | (?is)\berror: | |
4759 | <END_RESULT> | |
4760 | <RESULT IF_PASS POSITIVE> | |
4761 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4762 | <END_RESULT> | |
4763 | <END_TC> | |
4764 | :exmp. | |
4765 | ||
4766 | .*---------------------------------------------------------------------* | |
4767 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch->Range | |
4768 | .*---------------------------------------------------------------------* | |
4769 | :xmp tab=0. | |
4770 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch->Range> | |
4771 | <COMPILE> | |
4772 | <VERDICT_LEAF PASS> | |
4773 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4774 | module ModuleA { | |
4775 | template charstring MyTemplate17 := * length (2..5+Nonexi17); | |
4776 | } | |
4777 | <END_MODULE> | |
4778 | <RESULT IF_PASS COUNT 1> | |
4779 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4780 | <END_RESULT> | |
4781 | <RESULT IF_PASS COUNT 1> | |
4782 | (?is)\berror: | |
4783 | <END_RESULT> | |
4784 | <RESULT IF_PASS POSITIVE> | |
4785 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4786 | <END_RESULT> | |
4787 | <END_TC> | |
4788 | :exmp. | |
4789 | ||
4790 | .*---------------------------------------------------------------------* | |
4791 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier | |
4792 | .*---------------------------------------------------------------------* | |
4793 | :xmp tab=0. | |
4794 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier> | |
4795 | <COMPILE> | |
4796 | <VERDICT_LEAF PASS> | |
4797 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4798 | module ModuleA { | |
4799 | template integer MyTemplate19 := Nonexi19(100); | |
4800 | } | |
4801 | <END_MODULE> | |
4802 | <RESULT IF_PASS COUNT 1> | |
4803 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4804 | <END_RESULT> | |
4805 | <RESULT IF_PASS COUNT 1> | |
4806 | (?is)\berror: | |
4807 | <END_RESULT> | |
4808 | <RESULT IF_PASS POSITIVE> | |
4809 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4810 | <END_RESULT> | |
4811 | <END_TC> | |
4812 | :exmp. | |
4813 | ||
4814 | .*---------------------------------------------------------------------* | |
4815 | :h3.TTCN-3::TemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier->ParValue | |
4816 | .*---------------------------------------------------------------------* | |
4817 | :xmp tab=0. | |
4818 | <TC - TTCN-3::TemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier->ParValue> | |
4819 | <COMPILE> | |
4820 | <VERDICT_LEAF PASS> | |
4821 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4822 | module ModuleA { | |
4823 | template integer MyTemplateInteger(integer InPar) := InPar; | |
4824 | template integer MyTemplate22 := MyTemplateInteger(Nonexi22); | |
4825 | } | |
4826 | <END_MODULE> | |
4827 | <RESULT IF_PASS COUNT 1> | |
4828 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4829 | <END_RESULT> | |
4830 | <RESULT IF_PASS COUNT 1> | |
4831 | (?is)\berror: | |
4832 | <END_RESULT> | |
4833 | <RESULT IF_PASS POSITIVE> | |
4834 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4835 | <END_RESULT> | |
4836 | <END_TC> | |
4837 | :exmp. | |
4838 | ||
4839 | .*---------------------------------------------------------------------* | |
4840 | :h3.TTCN-3::TemplateDef: TemplateBody->FieldSpecList->FieldReference | |
4841 | .*---------------------------------------------------------------------* | |
4842 | :xmp tab=0. | |
4843 | <TC - TTCN-3::TemplateDef: TemplateBody->FieldSpecList->FieldReference> | |
4844 | <COMPILE> | |
4845 | <VERDICT_LEAF PASS> | |
4846 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4847 | module ModuleA { | |
4848 | type record MyTypeRecord { integer field1 }; | |
4849 | template MyTypeRecord MyTemplate23 := { field1 := 10, Nonexi23 := 10 }; | |
4850 | } | |
4851 | <END_MODULE> | |
4852 | <RESULT IF_PASS COUNT 1> | |
4853 | (?im)\berror\b.+?non.+?existent.+?field.+?Nonexi | |
4854 | <END_RESULT> | |
4855 | <RESULT IF_PASS COUNT 1> | |
4856 | (?is)\berror: | |
4857 | <END_RESULT> | |
4858 | <RESULT IF_PASS POSITIVE> | |
4859 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4860 | <END_RESULT> | |
4861 | <END_TC> | |
4862 | :exmp. | |
4863 | ||
4864 | .*---------------------------------------------------------------------* | |
4865 | :h3.TTCN-3::TemplateDef: TemplateBody->FieldSpecList->Value | |
4866 | .*---------------------------------------------------------------------* | |
4867 | :xmp tab=0. | |
4868 | <TC - TTCN-3::TemplateDef: TemplateBody->FieldSpecList->Value> | |
4869 | <COMPILE> | |
4870 | <VERDICT_LEAF PASS> | |
4871 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4872 | module ModuleA { | |
4873 | type record MyTypeRecord { integer field1 }; | |
4874 | template MyTypeRecord MyTemplate24 := { field1 := float2int(4.3) + Nonexi24 }; | |
4875 | // others are covered in 'templatebody' | |
4876 | } | |
4877 | <END_MODULE> | |
4878 | <RESULT IF_PASS COUNT 1> | |
4879 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4880 | <END_RESULT> | |
4881 | <RESULT IF_PASS COUNT 1> | |
4882 | (?is)\berror: | |
4883 | <END_RESULT> | |
4884 | <RESULT IF_PASS POSITIVE> | |
4885 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4886 | <END_RESULT> | |
4887 | <END_TC> | |
4888 | :exmp. | |
4889 | ||
4890 | .*---------------------------------------------------------------------* | |
4891 | :h3.TTCN-3::TemplateDef: TemplateBody->ArrayValueOrAttrib | |
4892 | .*---------------------------------------------------------------------* | |
4893 | :xmp tab=0. | |
4894 | <TC - TTCN-3::TemplateDef: TemplateBody->ArrayValueOrAttrib> | |
4895 | <COMPILE> | |
4896 | <VERDICT_LEAF PASS> | |
4897 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4898 | module ModuleA { | |
4899 | // NOTE: array types are not yet supported | |
4900 | type record MyTypeRecord { integer field1[3] }; | |
4901 | template MyTypeRecord.field1 MyTemplate25 := {10, 10, Nonexi}; | |
4902 | } | |
4903 | <END_MODULE> | |
4904 | <RESULT IF_PASS COUNT 1> | |
4905 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4906 | <END_RESULT> | |
4907 | <RESULT IF_PASS COUNT 1> | |
4908 | (?is)\berror: | |
4909 | <END_RESULT> | |
4910 | <RESULT IF_PASS POSITIVE> | |
4911 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4912 | <END_RESULT> | |
4913 | <RESULT IF_FAIL COUNT 1> | |
4914 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4915 | <END_RESULT> | |
4916 | <RESULT IF_FAIL COUNT 1> | |
4917 | (?im)\berror\b.+?not.+?supported | |
4918 | <END_RESULT> | |
4919 | <RESULT IF_FAIL COUNT 2> | |
4920 | (?is)\berror: | |
4921 | <END_RESULT> | |
4922 | <END_TC> | |
4923 | :exmp. | |
4924 | ||
4925 | .*---------------------------------------------------------------------* | |
4926 | :h3.TTCN-3::TemplateDef: TemplateBody->Nonexistent parameter | |
4927 | .*---------------------------------------------------------------------* | |
4928 | :xmp tab=0. | |
4929 | <TC - TTCN-3::TemplateDef: TemplateBody->Nonexistent parameter> | |
4930 | <COMPILE> | |
4931 | <VERDICT_LEAF PASS> | |
4932 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4933 | module ModuleA { | |
4934 | signature MySig1(integer par1, boolean par2); | |
4935 | template MySig1 MyTemplate26 := { par1 := 666, par2 := false, nonexi := 44.3 } | |
4936 | } | |
4937 | <END_MODULE> | |
4938 | <RESULT IF_PASS COUNT 1> | |
4939 | (?im)\berror\b.+?Reference.+?to.+?non.*?existent.+?parameter.+?Nonexi | |
4940 | <END_RESULT> | |
4941 | <RESULT IF_PASS COUNT 1> | |
4942 | (?is)\berror: | |
4943 | <END_RESULT> | |
4944 | <RESULT IF_PASS POSITIVE> | |
4945 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4946 | <END_RESULT> | |
4947 | <END_TC> | |
4948 | :exmp. | |
4949 | ||
4950 | .*---------------------------------------------------------------------* | |
4951 | :h3.TTCN-3::DynamicTemplateDef: ReferencedType | |
4952 | .*---------------------------------------------------------------------* | |
4953 | :xmp tab=0. | |
4954 | <TC - TTCN-3::DynamicTemplateDef: ReferencedType> | |
4955 | <COMPILE> | |
4956 | <VERDICT_LEAF PASS> | |
4957 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4958 | // NOTE: dynamic templates are extensions to the standard | |
4959 | module ModuleA { | |
4960 | type component MyComp { | |
4961 | var template Nonexi01 MyTemplate1 := 10; | |
4962 | } | |
4963 | } | |
4964 | <END_MODULE> | |
4965 | <RESULT IF_PASS COUNT 1> | |
4966 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4967 | <END_RESULT> | |
4968 | <RESULT IF_PASS COUNT 1> | |
4969 | (?is)\berror: | |
4970 | <END_RESULT> | |
4971 | <RESULT IF_PASS POSITIVE> | |
4972 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
4973 | <END_RESULT> | |
4974 | <END_TC> | |
4975 | :exmp. | |
4976 | ||
4977 | .*---------------------------------------------------------------------* | |
4978 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->Expression | |
4979 | .*---------------------------------------------------------------------* | |
4980 | :xmp tab=0. | |
4981 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->Expression> | |
4982 | <COMPILE> | |
4983 | <VERDICT_LEAF PASS> | |
4984 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
4985 | // NOTE: dynamic templates are extensions to the standard | |
4986 | module ModuleA { | |
4987 | type component MyComp { | |
4988 | var template integer MyTemplate10 := 333 - (Nonexi05); | |
4989 | } | |
4990 | } | |
4991 | <END_MODULE> | |
4992 | <RESULT IF_PASS COUNT 1> | |
4993 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
4994 | <END_RESULT> | |
4995 | <RESULT IF_PASS COUNT 1> | |
4996 | (?is)\berror: | |
4997 | <END_RESULT> | |
4998 | <RESULT IF_PASS POSITIVE> | |
4999 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5000 | <END_RESULT> | |
5001 | <END_TC> | |
5002 | :exmp. | |
5003 | ||
5004 | .*---------------------------------------------------------------------* | |
5005 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Complement | |
5006 | .*---------------------------------------------------------------------* | |
5007 | :xmp tab=0. | |
5008 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Complement> | |
5009 | <COMPILE> | |
5010 | <VERDICT_LEAF PASS> | |
5011 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5012 | // NOTE: dynamic templates are extensions to the standard | |
5013 | module ModuleA { | |
5014 | type component MyComp { | |
5015 | var template integer MyTemplate11 := complement (10, Nonexi06); | |
5016 | } | |
5017 | } | |
5018 | <END_MODULE> | |
5019 | <RESULT IF_PASS COUNT 1> | |
5020 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5021 | <END_RESULT> | |
5022 | <RESULT IF_PASS COUNT 1> | |
5023 | (?is)\berror: | |
5024 | <END_RESULT> | |
5025 | <RESULT IF_PASS POSITIVE> | |
5026 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5027 | <END_RESULT> | |
5028 | <END_TC> | |
5029 | :exmp. | |
5030 | ||
5031 | .*---------------------------------------------------------------------* | |
5032 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ValueOrAttribList | |
5033 | .*---------------------------------------------------------------------* | |
5034 | :xmp tab=0. | |
5035 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ValueOrAttribList> | |
5036 | <COMPILE> | |
5037 | <VERDICT_LEAF PASS> | |
5038 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5039 | // NOTE: dynamic templates are extensions to the standard | |
5040 | module ModuleA { | |
5041 | type component MyComp { | |
5042 | var template integer MyTemplate12 := (10, Nonexi07); | |
5043 | } | |
5044 | } | |
5045 | <END_MODULE> | |
5046 | <RESULT IF_PASS COUNT 1> | |
5047 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5048 | <END_RESULT> | |
5049 | <RESULT IF_PASS COUNT 1> | |
5050 | (?is)\berror: | |
5051 | <END_RESULT> | |
5052 | <RESULT IF_PASS POSITIVE> | |
5053 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5054 | <END_RESULT> | |
5055 | <END_TC> | |
5056 | :exmp. | |
5057 | ||
5058 | .*---------------------------------------------------------------------* | |
5059 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Range | |
5060 | .*---------------------------------------------------------------------* | |
5061 | :xmp tab=0. | |
5062 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->Range> | |
5063 | <COMPILE> | |
5064 | <VERDICT_LEAF PASS> | |
5065 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5066 | // NOTE: dynamic templates are extensions to the standard | |
5067 | module ModuleA { | |
5068 | type component MyComp { | |
5069 | var template integer MyTemplate13 := (10 .. 33+Nonexi08); | |
5070 | } | |
5071 | } | |
5072 | <END_MODULE> | |
5073 | <RESULT IF_PASS COUNT 1> | |
5074 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5075 | <END_RESULT> | |
5076 | <RESULT IF_PASS COUNT 1> | |
5077 | (?is)\berror: | |
5078 | <END_RESULT> | |
5079 | <RESULT IF_PASS POSITIVE> | |
5080 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5081 | <END_RESULT> | |
5082 | <END_TC> | |
5083 | :exmp. | |
5084 | ||
5085 | .*---------------------------------------------------------------------* | |
5086 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SubsetMatch | |
5087 | .*---------------------------------------------------------------------* | |
5088 | :xmp tab=0. | |
5089 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SubsetMatch> | |
5090 | <COMPILE> | |
5091 | <VERDICT_LEAF PASS> | |
5092 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5093 | // NOTE: dynamic templates are extensions to the standard | |
5094 | module ModuleA { | |
5095 | type set of integer MyType; | |
5096 | type component MyComp { | |
5097 | var template MyType MyTemplate14 := subset (10, 22+Nonexi09); | |
5098 | } | |
5099 | } | |
5100 | <END_MODULE> | |
5101 | <RESULT IF_PASS COUNT 1> | |
5102 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5103 | <END_RESULT> | |
5104 | <RESULT IF_PASS COUNT 1> | |
5105 | (?is)\berror: | |
5106 | <END_RESULT> | |
5107 | <RESULT IF_PASS POSITIVE> | |
5108 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5109 | <END_RESULT> | |
5110 | <END_TC> | |
5111 | :exmp. | |
5112 | ||
5113 | .*---------------------------------------------------------------------* | |
5114 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SupersetMatch | |
5115 | .*---------------------------------------------------------------------* | |
5116 | :xmp tab=0. | |
5117 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->SupersetMatch> | |
5118 | <COMPILE> | |
5119 | <VERDICT_LEAF PASS> | |
5120 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5121 | // NOTE: dynamic templates are extensions to the standard | |
5122 | module ModuleA { | |
5123 | type set of integer MyType; | |
5124 | type component MyComp { | |
5125 | var template MyType MyTemplate15 := superset (10, Nonexi10); | |
5126 | } | |
5127 | } | |
5128 | <END_MODULE> | |
5129 | <RESULT IF_PASS COUNT 1> | |
5130 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5131 | <END_RESULT> | |
5132 | <RESULT IF_PASS COUNT 1> | |
5133 | (?is)\berror: | |
5134 | <END_RESULT> | |
5135 | <RESULT IF_PASS POSITIVE> | |
5136 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5137 | <END_RESULT> | |
5138 | <END_TC> | |
5139 | :exmp. | |
5140 | ||
5141 | .*---------------------------------------------------------------------* | |
5142 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->PermutationMatch | |
5143 | .*---------------------------------------------------------------------* | |
5144 | :xmp tab=0. | |
5145 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->PermutationMatch> | |
5146 | <COMPILE> | |
5147 | <VERDICT_LEAF PASS> | |
5148 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5149 | // NOTE: dynamic templates are extensions to the standard | |
5150 | module ModuleA { | |
5151 | type record of integer MyType2; | |
5152 | type component MyComp { | |
5153 | var template MyType2 MyTemplate16 := { permutation (1,2,3,Nonexi11)}; | |
5154 | } | |
5155 | } | |
5156 | <END_MODULE> | |
5157 | <RESULT IF_PASS COUNT 1> | |
5158 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5159 | <END_RESULT> | |
5160 | <RESULT IF_PASS COUNT 1> | |
5161 | (?is)\berror: | |
5162 | <END_RESULT> | |
5163 | <RESULT IF_PASS POSITIVE> | |
5164 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5165 | <END_RESULT> | |
5166 | <END_TC> | |
5167 | :exmp. | |
5168 | ||
5169 | .*---------------------------------------------------------------------* | |
5170 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch | |
5171 | .*---------------------------------------------------------------------* | |
5172 | :xmp tab=0. | |
5173 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch> | |
5174 | <COMPILE> | |
5175 | <VERDICT_LEAF PASS> | |
5176 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5177 | // NOTE: dynamic templates are extensions to the standard | |
5178 | module ModuleA { | |
5179 | type component MyComp { | |
5180 | var template charstring MyTemplate17 := * length (22+Nonexi12); | |
5181 | } | |
5182 | } | |
5183 | <END_MODULE> | |
5184 | <RESULT IF_PASS COUNT 1> | |
5185 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5186 | <END_RESULT> | |
5187 | <RESULT IF_PASS COUNT 1> | |
5188 | (?is)\berror: | |
5189 | <END_RESULT> | |
5190 | <RESULT IF_PASS POSITIVE> | |
5191 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5192 | <END_RESULT> | |
5193 | <END_TC> | |
5194 | :exmp. | |
5195 | ||
5196 | .*---------------------------------------------------------------------* | |
5197 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch->Range | |
5198 | .*---------------------------------------------------------------------* | |
5199 | :xmp tab=0. | |
5200 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->SingleValueOrAttrib->ExtraMatchingAttributes->LengthMatch->Range> | |
5201 | <COMPILE> | |
5202 | <VERDICT_LEAF PASS> | |
5203 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5204 | // NOTE: dynamic templates are extensions to the standard | |
5205 | module ModuleA { | |
5206 | type component MyComp { | |
5207 | var template charstring MyTemplate18 := * length (11.. Nonexi13); | |
5208 | } | |
5209 | } | |
5210 | <END_MODULE> | |
5211 | <RESULT IF_PASS COUNT 1> | |
5212 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5213 | <END_RESULT> | |
5214 | <RESULT IF_PASS COUNT 1> | |
5215 | (?is)\berror: | |
5216 | <END_RESULT> | |
5217 | <RESULT IF_PASS POSITIVE> | |
5218 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5219 | <END_RESULT> | |
5220 | <END_TC> | |
5221 | :exmp. | |
5222 | ||
5223 | .*---------------------------------------------------------------------* | |
5224 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier | |
5225 | .*---------------------------------------------------------------------* | |
5226 | :xmp tab=0. | |
5227 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->SimpleSpec->TemplateRefWithParList->Identifier> | |
5228 | <COMPILE> | |
5229 | <VERDICT_LEAF PASS> | |
5230 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5231 | // NOTE: dynamic templates are extensions to the standard | |
5232 | module ModuleA { | |
5233 | type component MyComp { | |
5234 | var template integer MyTemplate19 := Nonexi14 + 100*2; | |
5235 | } | |
5236 | } | |
5237 | <END_MODULE> | |
5238 | <RESULT IF_PASS COUNT 1> | |
5239 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5240 | <END_RESULT> | |
5241 | <RESULT IF_PASS COUNT 1> | |
5242 | (?is)\berror: | |
5243 | <END_RESULT> | |
5244 | <RESULT IF_PASS POSITIVE> | |
5245 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5246 | <END_RESULT> | |
5247 | <END_TC> | |
5248 | :exmp. | |
5249 | ||
5250 | .*---------------------------------------------------------------------* | |
5251 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->FieldSpecList->FieldReference | |
5252 | .*---------------------------------------------------------------------* | |
5253 | :xmp tab=0. | |
5254 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->FieldSpecList->FieldReference> | |
5255 | <COMPILE> | |
5256 | <VERDICT_LEAF PASS> | |
5257 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5258 | // NOTE: dynamic templates are extensions to the standard | |
5259 | module ModuleA { | |
5260 | type record MyTypeRecord { integer field1 }; | |
5261 | type component MyComp { | |
5262 | var template MyTypeRecord MyTemplate23 := { field1 := 10, Nonexi17 := 10 }; | |
5263 | } | |
5264 | } | |
5265 | <END_MODULE> | |
5266 | <RESULT IF_PASS COUNT 1> | |
5267 | (?im)\berror\b.+?non.+?existent.+?field.+?Nonexi | |
5268 | <END_RESULT> | |
5269 | <RESULT IF_PASS COUNT 1> | |
5270 | (?is)\berror: | |
5271 | <END_RESULT> | |
5272 | <RESULT IF_PASS POSITIVE> | |
5273 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5274 | <END_RESULT> | |
5275 | <END_TC> | |
5276 | :exmp. | |
5277 | ||
5278 | .*---------------------------------------------------------------------* | |
5279 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->FieldSpecList->Value | |
5280 | .*---------------------------------------------------------------------* | |
5281 | :xmp tab=0. | |
5282 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->FieldSpecList->Value> | |
5283 | <COMPILE> | |
5284 | <VERDICT_LEAF PASS> | |
5285 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5286 | // NOTE: dynamic templates are extensions to the standard | |
5287 | module ModuleA { | |
5288 | type record MyTypeRecord { integer field1 }; | |
5289 | type component MyComp { | |
5290 | var template MyTypeRecord MyTemplate24 := { field1 := Nonexi18 }; | |
5291 | // others are covered in 'templatebody' | |
5292 | } | |
5293 | } | |
5294 | <END_MODULE> | |
5295 | <RESULT IF_PASS COUNT 1> | |
5296 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5297 | <END_RESULT> | |
5298 | <RESULT IF_PASS COUNT 1> | |
5299 | (?is)\berror: | |
5300 | <END_RESULT> | |
5301 | <RESULT IF_PASS POSITIVE> | |
5302 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5303 | <END_RESULT> | |
5304 | <END_TC> | |
5305 | :exmp. | |
5306 | ||
5307 | .*---------------------------------------------------------------------* | |
5308 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->ArrayValueOrAttrib | |
5309 | .*---------------------------------------------------------------------* | |
5310 | :xmp tab=0. | |
5311 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->ArrayValueOrAttrib> | |
5312 | <COMPILE> | |
5313 | <VERDICT_LEAF PASS> | |
5314 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5315 | // NOTE: dynamic templates are extensions to the standard | |
5316 | module ModuleA { | |
5317 | // NOTE: array types are not yet supported | |
5318 | type record MyTypeRecord { integer field1[2..4] }; | |
5319 | type component MyComp { | |
5320 | var template MyTypeRecord.field1 MyTemplate25 := { 7, Nonexi19, 100 }; | |
5321 | } | |
5322 | } | |
5323 | <END_MODULE> | |
5324 | <RESULT IF_PASS COUNT 1> | |
5325 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5326 | <END_RESULT> | |
5327 | <RESULT IF_PASS COUNT 1> | |
5328 | (?is)\berror: | |
5329 | <END_RESULT> | |
5330 | <RESULT IF_PASS POSITIVE> | |
5331 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5332 | <END_RESULT> | |
5333 | <RESULT IF_FAIL COUNT 1> | |
5334 | (?im)\berror\b.+?not.+?supported | |
5335 | <END_RESULT> | |
5336 | <RESULT IF_FAIL COUNT 2> | |
5337 | (?is)\berror: | |
5338 | <END_RESULT> | |
5339 | <END_TC> | |
5340 | :exmp. | |
5341 | ||
5342 | .*---------------------------------------------------------------------* | |
5343 | :h3.TTCN-3::DynamicTemplateDef: TemplateBody->Nonexistent parameter | |
5344 | .*---------------------------------------------------------------------* | |
5345 | :xmp tab=0. | |
5346 | <TC - TTCN-3::DynamicTemplateDef: TemplateBody->Nonexistent parameter> | |
5347 | <COMPILE> | |
5348 | <VERDICT_LEAF PASS> | |
5349 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5350 | // NOTE: dynamic templates are extensions to the standard | |
5351 | module ModuleA { | |
5352 | signature MySig1(integer par1, boolean par2); | |
5353 | type component MyComp { | |
5354 | var template MySig1 MyTemplate26 := { par1 := 666, par2 := false, nonexi := 44.3 } | |
5355 | } | |
5356 | } | |
5357 | <END_MODULE> | |
5358 | <RESULT IF_PASS COUNT 1> | |
5359 | (?im)\berror\b.+?Reference.+?to.+?non.*?existent.+?parameter.+?Nonexi | |
5360 | <END_RESULT> | |
5361 | <RESULT IF_PASS COUNT 1> | |
5362 | (?is)\berror: | |
5363 | <END_RESULT> | |
5364 | <RESULT IF_PASS POSITIVE> | |
5365 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5366 | <END_RESULT> | |
5367 | <END_TC> | |
5368 | :exmp. | |
5369 | ||
5370 | .*---------------------------------------------------------------------* | |
5371 | :h3.TTCN-3::FunctionDef: FunctionFormalParList->Identifier | |
5372 | .*---------------------------------------------------------------------* | |
5373 | :xmp tab=0. | |
5374 | <TC - TTCN-3::FunctionDef: FunctionFormalParList->Identifier> | |
5375 | <COMPILE> | |
5376 | <VERDICT_LEAF PASS> | |
5377 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5378 | module ModuleA { | |
5379 | function MyFunc1(Nonexi01 InPar) {} | |
5380 | } | |
5381 | <END_MODULE> | |
5382 | <RESULT IF_PASS COUNT 1> | |
5383 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5384 | <END_RESULT> | |
5385 | <RESULT IF_PASS COUNT 1> | |
5386 | (?is)\berror: | |
5387 | <END_RESULT> | |
5388 | <RESULT IF_PASS POSITIVE> | |
5389 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5390 | <END_RESULT> | |
5391 | <END_TC> | |
5392 | :exmp. | |
5393 | ||
5394 | .*---------------------------------------------------------------------* | |
5395 | :h3.TTCN-3::FunctionDef: FunctionFormalParList->FormalTemplatePar | |
5396 | .*---------------------------------------------------------------------* | |
5397 | :xmp tab=0. | |
5398 | <TC - TTCN-3::FunctionDef: FunctionFormalParList->FormalTemplatePar> | |
5399 | <COMPILE> | |
5400 | <VERDICT_LEAF PASS> | |
5401 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5402 | module ModuleA { | |
5403 | function MyFunc6(template Nonexi06 InPar) {} | |
5404 | } | |
5405 | <END_MODULE> | |
5406 | <RESULT IF_PASS COUNT 1> | |
5407 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5408 | <END_RESULT> | |
5409 | <RESULT IF_PASS COUNT 1> | |
5410 | (?is)\berror: | |
5411 | <END_RESULT> | |
5412 | <RESULT IF_PASS POSITIVE> | |
5413 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5414 | <END_RESULT> | |
5415 | <END_TC> | |
5416 | :exmp. | |
5417 | ||
5418 | .*---------------------------------------------------------------------* | |
5419 | :h3.TTCN-3::FunctionDef: RunsOnSpec | |
5420 | .*---------------------------------------------------------------------* | |
5421 | :xmp tab=0. | |
5422 | <TC - TTCN-3::FunctionDef: RunsOnSpec> | |
5423 | <COMPILE> | |
5424 | <VERDICT_LEAF PASS> | |
5425 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5426 | module ModuleA { | |
5427 | function MyFunc10() runs on Nonexi10 {} | |
5428 | } | |
5429 | <END_MODULE> | |
5430 | <RESULT IF_PASS COUNT 1> | |
5431 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5432 | <END_RESULT> | |
5433 | <RESULT IF_PASS COUNT 1> | |
5434 | (?is)\berror: | |
5435 | <END_RESULT> | |
5436 | <RESULT IF_PASS POSITIVE> | |
5437 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5438 | <END_RESULT> | |
5439 | <END_TC> | |
5440 | :exmp. | |
5441 | ||
5442 | .*---------------------------------------------------------------------* | |
5443 | :h3.TTCN-3::FunctionDef: ReturnType | |
5444 | .*---------------------------------------------------------------------* | |
5445 | :xmp tab=0. | |
5446 | <TC - TTCN-3::FunctionDef: ReturnType> | |
5447 | <COMPILE> | |
5448 | <VERDICT_LEAF PASS> | |
5449 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5450 | module ModuleA { | |
5451 | function MyFunc14() return Nonexi14 {} | |
5452 | } | |
5453 | <END_MODULE> | |
5454 | <RESULT IF_PASS COUNT 1> | |
5455 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5456 | <END_RESULT> | |
5457 | <RESULT IF_PASS COUNT 2> | |
5458 | (?is)\berror: | |
5459 | <END_RESULT> | |
5460 | <RESULT IF_PASS POSITIVE> | |
5461 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5462 | <END_RESULT> | |
5463 | <END_TC> | |
5464 | :exmp. | |
5465 | ||
5466 | .*---------------------------------------------------------------------* | |
5467 | :h3.TTCN-3::SignatureDef: SignatureFormalParList->Identifier | |
5468 | .*---------------------------------------------------------------------* | |
5469 | :xmp tab=0. | |
5470 | <TC - TTCN-3::SignatureDef: SignatureFormalParList->Identifier> | |
5471 | <COMPILE> | |
5472 | <VERDICT_LEAF PASS> | |
5473 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5474 | module ModuleA { | |
5475 | signature MySignature1(Nonexi01 InPar); | |
5476 | } | |
5477 | <END_MODULE> | |
5478 | <RESULT IF_PASS COUNT 1> | |
5479 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5480 | <END_RESULT> | |
5481 | <RESULT IF_PASS COUNT 1> | |
5482 | (?is)\berror: | |
5483 | <END_RESULT> | |
5484 | <RESULT IF_PASS POSITIVE> | |
5485 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5486 | <END_RESULT> | |
5487 | <END_TC> | |
5488 | :exmp. | |
5489 | ||
5490 | .*---------------------------------------------------------------------* | |
5491 | :h3.TTCN-3::SignatureDef: ReturnType | |
5492 | .*---------------------------------------------------------------------* | |
5493 | :xmp tab=0. | |
5494 | <TC - TTCN-3::SignatureDef: ReturnType> | |
5495 | <COMPILE> | |
5496 | <VERDICT_LEAF PASS> | |
5497 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5498 | module ModuleA { | |
5499 | signature MySignature5() return Nonexi05; | |
5500 | } | |
5501 | <END_MODULE> | |
5502 | <RESULT IF_PASS COUNT 1> | |
5503 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5504 | <END_RESULT> | |
5505 | <RESULT IF_PASS COUNT 1> | |
5506 | (?is)\berror: | |
5507 | <END_RESULT> | |
5508 | <RESULT IF_PASS POSITIVE> | |
5509 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5510 | <END_RESULT> | |
5511 | <END_TC> | |
5512 | :exmp. | |
5513 | ||
5514 | .*---------------------------------------------------------------------* | |
5515 | :h3.TTCN-3::SignatureDef: ExceptionList | |
5516 | .*---------------------------------------------------------------------* | |
5517 | :xmp tab=0. | |
5518 | <TC - TTCN-3::SignatureDef: ExceptionList> | |
5519 | <COMPILE> | |
5520 | <VERDICT_LEAF PASS> | |
5521 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5522 | module ModuleA { | |
5523 | signature MySignature9() exception (Nonexi09); | |
5524 | } | |
5525 | <END_MODULE> | |
5526 | <RESULT IF_PASS COUNT 1> | |
5527 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5528 | <END_RESULT> | |
5529 | <RESULT IF_PASS COUNT 1> | |
5530 | (?is)\berror: | |
5531 | <END_RESULT> | |
5532 | <RESULT IF_PASS POSITIVE> | |
5533 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5534 | <END_RESULT> | |
5535 | <END_TC> | |
5536 | :exmp. | |
5537 | ||
5538 | .*---------------------------------------------------------------------* | |
5539 | :h3.TTCN-3::TestcaseDef: TestcaseFormalParList->Identifier | |
5540 | .*---------------------------------------------------------------------* | |
5541 | :xmp tab=0. | |
5542 | <TC - TTCN-3::TestcaseDef: TestcaseFormalParList->Identifier> | |
5543 | <COMPILE> | |
5544 | <VERDICT_LEAF PASS> | |
5545 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5546 | module ModuleA { | |
5547 | type record of integer MyType; | |
5548 | type port MyPortType message { inout MyType; } | |
5549 | type component MyCompType { port MyPortType MyPort } | |
5550 | testcase MyTC1(Nonexi01 InPar) runs on MyCompType {} | |
5551 | } | |
5552 | <END_MODULE> | |
5553 | <RESULT IF_PASS COUNT 1> | |
5554 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5555 | <END_RESULT> | |
5556 | <RESULT IF_PASS COUNT 1> | |
5557 | (?is)\berror: | |
5558 | <END_RESULT> | |
5559 | <RESULT IF_PASS POSITIVE> | |
5560 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5561 | <END_RESULT> | |
5562 | <END_TC> | |
5563 | :exmp. | |
5564 | ||
5565 | .*---------------------------------------------------------------------* | |
5566 | :h3.TTCN-3::TestcaseDef: TestcaseFormalParList->FormalTemplatePar | |
5567 | .*---------------------------------------------------------------------* | |
5568 | :xmp tab=0. | |
5569 | <TC - TTCN-3::TestcaseDef: TestcaseFormalParList->FormalTemplatePar> | |
5570 | <COMPILE> | |
5571 | <VERDICT_LEAF PASS> | |
5572 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5573 | module ModuleA { | |
5574 | type record of integer MyType; | |
5575 | type port MyPortType message { inout MyType; } | |
5576 | type component MyCompType { port MyPortType MyPort } | |
5577 | testcase MyTC5(template Nonexi05 InPar) runs on MyCompType {} | |
5578 | } | |
5579 | <END_MODULE> | |
5580 | <RESULT IF_PASS COUNT 1> | |
5581 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5582 | <END_RESULT> | |
5583 | <RESULT IF_PASS COUNT 1> | |
5584 | (?is)\berror: | |
5585 | <END_RESULT> | |
5586 | <RESULT IF_PASS POSITIVE> | |
5587 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5588 | <END_RESULT> | |
5589 | <END_TC> | |
5590 | :exmp. | |
5591 | ||
5592 | .*---------------------------------------------------------------------* | |
5593 | :h3.TTCN-3::TestcaseDef: RunsOnSpec | |
5594 | .*---------------------------------------------------------------------* | |
5595 | :xmp tab=0. | |
5596 | <TC - TTCN-3::TestcaseDef: RunsOnSpec> | |
5597 | <COMPILE> | |
5598 | <VERDICT_LEAF PASS> | |
5599 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5600 | module ModuleA { | |
5601 | type record of integer MyType; | |
5602 | type port MyPortType message { inout MyType; } | |
5603 | type component MyCompType { port MyPortType MyPort } | |
5604 | testcase MyTC9() runs on Nonexi9 {} | |
5605 | } | |
5606 | <END_MODULE> | |
5607 | <RESULT IF_PASS COUNT 1> | |
5608 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5609 | <END_RESULT> | |
5610 | <RESULT IF_PASS COUNT 1> | |
5611 | (?is)\berror: | |
5612 | <END_RESULT> | |
5613 | <RESULT IF_PASS POSITIVE> | |
5614 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5615 | <END_RESULT> | |
5616 | <END_TC> | |
5617 | :exmp. | |
5618 | ||
5619 | .*---------------------------------------------------------------------* | |
5620 | :h3.TTCN-3::TestcaseDef: SystemSpec | |
5621 | .*---------------------------------------------------------------------* | |
5622 | :xmp tab=0. | |
5623 | <TC - TTCN-3::TestcaseDef: SystemSpec> | |
5624 | <COMPILE> | |
5625 | <VERDICT_LEAF PASS> | |
5626 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5627 | module ModuleA { | |
5628 | type record of integer MyType; | |
5629 | type port MyPortType message { inout MyType; } | |
5630 | type component MyCompType { port MyPortType MyPort } | |
5631 | testcase MyTC13() runs on MyCompType system Nonexi13 {} | |
5632 | } | |
5633 | <END_MODULE> | |
5634 | <RESULT IF_PASS COUNT 1> | |
5635 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5636 | <END_RESULT> | |
5637 | <RESULT IF_PASS COUNT 1> | |
5638 | (?is)\berror: | |
5639 | <END_RESULT> | |
5640 | <RESULT IF_PASS POSITIVE> | |
5641 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5642 | <END_RESULT> | |
5643 | <END_TC> | |
5644 | :exmp. | |
5645 | ||
5646 | .*---------------------------------------------------------------------* | |
5647 | :h3.TTCN-3::AltstepDef: AltstepFormalParList->Identifier | |
5648 | .*---------------------------------------------------------------------* | |
5649 | :xmp tab=0. | |
5650 | <TC - TTCN-3::AltstepDef: AltstepFormalParList->Identifier> | |
5651 | <COMPILE> | |
5652 | <VERDICT_LEAF PASS> | |
5653 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5654 | module ModuleA { | |
5655 | type port MyPortType message { inout boolean; } | |
5656 | type component MyCompType { | |
5657 | port MyPortType MyPort; | |
5658 | } | |
5659 | // others should be covered in 'FormalParList' | |
5660 | altstep MyAltstep1(Nonexi01 InPar) runs on MyCompType {[] MyPort.receive{}} | |
5661 | } | |
5662 | <END_MODULE> | |
5663 | <RESULT IF_PASS COUNT 1> | |
5664 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5665 | <END_RESULT> | |
5666 | <RESULT IF_PASS COUNT 1> | |
5667 | (?is)\berror: | |
5668 | <END_RESULT> | |
5669 | <RESULT IF_PASS POSITIVE> | |
5670 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5671 | <END_RESULT> | |
5672 | <END_TC> | |
5673 | :exmp. | |
5674 | ||
5675 | .*---------------------------------------------------------------------* | |
5676 | :h3.TTCN-3::AltstepDef: RunsOnSpec | |
5677 | .*---------------------------------------------------------------------* | |
5678 | :xmp tab=0. | |
5679 | <TC - TTCN-3::AltstepDef: RunsOnSpec> | |
5680 | <COMPILE> | |
5681 | <VERDICT_LEAF PASS> | |
5682 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5683 | module ModuleA { | |
5684 | type port MyPortType message { inout boolean; } | |
5685 | type component MyCompType { | |
5686 | port MyPortType MyPort; | |
5687 | } | |
5688 | altstep MyAltstep02() runs on Nonexi02 {[] any port.receive{}} | |
5689 | } | |
5690 | <END_MODULE> | |
5691 | <RESULT IF_PASS COUNT 1> | |
5692 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5693 | <END_RESULT> | |
5694 | <RESULT IF_PASS COUNT 1> | |
5695 | (?is)\berror: | |
5696 | <END_RESULT> | |
5697 | <RESULT IF_PASS POSITIVE> | |
5698 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5699 | <END_RESULT> | |
5700 | <END_TC> | |
5701 | :exmp. | |
5702 | ||
5703 | .*---------------------------------------------------------------------* | |
5704 | :h3.TTCN-3::AltstepDef: GuardStatement->AltGuardChar->BooleanExpression | |
5705 | .*---------------------------------------------------------------------* | |
5706 | :xmp tab=0. | |
5707 | <TC - TTCN-3::AltstepDef: GuardStatement->AltGuardChar->BooleanExpression> | |
5708 | <COMPILE> | |
5709 | <VERDICT_LEAF PASS> | |
5710 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5711 | module ModuleA { | |
5712 | type port MyPortType message { inout boolean; } | |
5713 | type component MyCompType { | |
5714 | port MyPortType MyPort; | |
5715 | } | |
5716 | altstep MyAltstep03() runs on MyCompType {[false or Nonexi03] MyPort.receive{}} | |
5717 | } | |
5718 | <END_MODULE> | |
5719 | <RESULT IF_PASS COUNT 1> | |
5720 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5721 | <END_RESULT> | |
5722 | <RESULT IF_PASS COUNT 1> | |
5723 | (?is)\berror: | |
5724 | <END_RESULT> | |
5725 | <RESULT IF_PASS POSITIVE> | |
5726 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5727 | <END_RESULT> | |
5728 | <END_TC> | |
5729 | :exmp. | |
5730 | ||
5731 | .*---------------------------------------------------------------------* | |
5732 | :h3.TTCN-3::AltstepDef: GuardStatement->AltstepInstance->AltstepRef | |
5733 | .*---------------------------------------------------------------------* | |
5734 | :xmp tab=0. | |
5735 | <TC - TTCN-3::AltstepDef: GuardStatement->AltstepInstance->AltstepRef> | |
5736 | <COMPILE> | |
5737 | <VERDICT_LEAF PASS> | |
5738 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5739 | module ModuleA { | |
5740 | type port MyPortType message { inout boolean; } | |
5741 | type component MyCompType { | |
5742 | port MyPortType MyPort; | |
5743 | } | |
5744 | altstep MyAltstep04() runs on MyCompType {[] Nonexi()} | |
5745 | } | |
5746 | <END_MODULE> | |
5747 | <RESULT IF_PASS COUNT 1> | |
5748 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5749 | <END_RESULT> | |
5750 | <RESULT IF_PASS COUNT 1> | |
5751 | (?is)\berror: | |
5752 | <END_RESULT> | |
5753 | <RESULT IF_PASS POSITIVE> | |
5754 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5755 | <END_RESULT> | |
5756 | <END_TC> | |
5757 | :exmp. | |
5758 | ||
5759 | .*---------------------------------------------------------------------* | |
5760 | :h3.TTCN-3::AltstepDef: GuardStatement->AltstepInstance->FunctionActualParList | |
5761 | .*---------------------------------------------------------------------* | |
5762 | :xmp tab=0. | |
5763 | <TC - TTCN-3::AltstepDef: GuardStatement->AltstepInstance->FunctionActualParList> | |
5764 | <COMPILE> | |
5765 | <VERDICT_LEAF PASS> | |
5766 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5767 | module ModuleA { | |
5768 | type port MyPortType message { inout boolean; } | |
5769 | type component MyCompType { | |
5770 | port MyPortType MyPort; | |
5771 | } | |
5772 | altstep MyAltstep1(integer InPar) runs on MyCompType {[] MyPort.receive{}} | |
5773 | altstep MyAltstep05() runs on MyCompType {[] MyAltstep1(2 + Nonexi05)} | |
5774 | } | |
5775 | <END_MODULE> | |
5776 | <RESULT IF_PASS COUNT 1> | |
5777 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5778 | <END_RESULT> | |
5779 | <RESULT IF_PASS COUNT 1> | |
5780 | (?is)\berror: | |
5781 | <END_RESULT> | |
5782 | <RESULT IF_PASS POSITIVE> | |
5783 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5784 | <END_RESULT> | |
5785 | <END_TC> | |
5786 | :exmp. | |
5787 | ||
5788 | .*---------------------------------------------------------------------* | |
5789 | :h3.TTCN-3::AltstepDef: GuardStatement->AltstepInstance->GuardOp->TimeoutStatement->TimerRef->TimerIdentifier | |
5790 | .*---------------------------------------------------------------------* | |
5791 | :xmp tab=0. | |
5792 | <TC - TTCN-3::AltstepDef: GuardStatement->AltstepInstance->GuardOp->TimeoutStatement->TimerRef->TimerIdentifier> | |
5793 | <COMPILE> | |
5794 | <VERDICT_LEAF PASS> | |
5795 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5796 | module ModuleA { | |
5797 | type port MyPortType message { inout boolean; } | |
5798 | type component MyCompType { | |
5799 | port MyPortType MyPort; | |
5800 | } | |
5801 | altstep MyAltstep06() runs on MyCompType {[] Nonexi06.timeout{}} | |
5802 | } | |
5803 | <END_MODULE> | |
5804 | <RESULT IF_PASS COUNT 1> | |
5805 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5806 | <END_RESULT> | |
5807 | <RESULT IF_PASS COUNT 1> | |
5808 | (?is)\berror: | |
5809 | <END_RESULT> | |
5810 | <RESULT IF_PASS POSITIVE> | |
5811 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5812 | <END_RESULT> | |
5813 | <END_TC> | |
5814 | :exmp. | |
5815 | ||
5816 | .*---------------------------------------------------------------------* | |
5817 | :h3.TTCN-3::AltstepDef: GuardStatement->AltstepInstance->GuardOp->TimeoutStatement->TimerRef->ArrayOrBitRef | |
5818 | .*---------------------------------------------------------------------* | |
5819 | :xmp tab=0. | |
5820 | <TC - TTCN-3::AltstepDef: GuardStatement->AltstepInstance->GuardOp->TimeoutStatement->TimerRef->ArrayOrBitRef> | |
5821 | <COMPILE> | |
5822 | <VERDICT_LEAF PASS> | |
5823 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5824 | module ModuleA { | |
5825 | type port MyPortType message { inout boolean; } | |
5826 | type component MyCompType { | |
5827 | port MyPortType MyPort; | |
5828 | } | |
5829 | altstep MyAltstep07() runs on MyCompType { | |
5830 | timer TimerPar[10]; | |
5831 | [] TimerPar[Nonexi07 + 2].timeout{} | |
5832 | } | |
5833 | } | |
5834 | <END_MODULE> | |
5835 | <RESULT IF_PASS COUNT 1> | |
5836 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5837 | <END_RESULT> | |
5838 | <RESULT IF_PASS COUNT 1> | |
5839 | (?is)\berror: | |
5840 | <END_RESULT> | |
5841 | <RESULT IF_PASS POSITIVE> | |
5842 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5843 | <END_RESULT> | |
5844 | <END_TC> | |
5845 | :exmp. | |
5846 | ||
5847 | .*---------------------------------------------------------------------* | |
5848 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->Port->PortIdentifier | |
5849 | .*---------------------------------------------------------------------* | |
5850 | :xmp tab=0. | |
5851 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->Port->PortIdentifier> | |
5852 | <COMPILE> | |
5853 | <VERDICT_LEAF PASS> | |
5854 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5855 | module ModuleA { | |
5856 | type port MyPortType message { inout float; } | |
5857 | type component MyCompType { | |
5858 | port MyPortType MyPort; | |
5859 | } | |
5860 | altstep MyAltstep08() runs on MyCompType {[] Nonexi08.receive{}} | |
5861 | } | |
5862 | <END_MODULE> | |
5863 | <RESULT IF_PASS COUNT 1> | |
5864 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5865 | <END_RESULT> | |
5866 | <RESULT IF_PASS COUNT 1> | |
5867 | (?is)\berror: | |
5868 | <END_RESULT> | |
5869 | <RESULT IF_PASS POSITIVE> | |
5870 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5871 | <END_RESULT> | |
5872 | <END_TC> | |
5873 | :exmp. | |
5874 | ||
5875 | .*---------------------------------------------------------------------* | |
5876 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->Port->PortIdentifier->ArrayOrBitRef | |
5877 | .*---------------------------------------------------------------------* | |
5878 | :xmp tab=0. | |
5879 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->Port->PortIdentifier->ArrayOrBitRef> | |
5880 | <COMPILE> | |
5881 | <VERDICT_LEAF PASS> | |
5882 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5883 | module ModuleA { | |
5884 | type port MyPortType message { inout float; } | |
5885 | type component MyCompType { | |
5886 | port MyPortType MyPortArray[10]; | |
5887 | } | |
5888 | altstep MyAltstep09() runs on MyCompType {[] MyPortArray[Nonexi09 + 2].receive{}} | |
5889 | } | |
5890 | <END_MODULE> | |
5891 | <RESULT IF_PASS COUNT 1> | |
5892 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5893 | <END_RESULT> | |
5894 | <RESULT IF_PASS COUNT 1> | |
5895 | (?is)\berror: | |
5896 | <END_RESULT> | |
5897 | <RESULT IF_PASS POSITIVE> | |
5898 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5899 | <END_RESULT> | |
5900 | <END_TC> | |
5901 | :exmp. | |
5902 | ||
5903 | .*---------------------------------------------------------------------* | |
5904 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->ReceiveParameter | |
5905 | .*---------------------------------------------------------------------* | |
5906 | :xmp tab=0. | |
5907 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->ReceiveParameter> | |
5908 | <COMPILE> | |
5909 | <VERDICT_LEAF PASS> | |
5910 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5911 | module ModuleA { | |
5912 | type port MyPortType message { inout float; } | |
5913 | type component MyCompType { | |
5914 | port MyPortType MyPort; | |
5915 | } | |
5916 | altstep MyAltstep10() runs on MyCompType {[] MyPort.receive(Nonexi10 + 2) {}} | |
5917 | } | |
5918 | <END_MODULE> | |
5919 | <RESULT IF_PASS COUNT 1> | |
5920 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5921 | <END_RESULT> | |
5922 | <RESULT IF_PASS COUNT 1> | |
5923 | (?is)\berror: | |
5924 | <END_RESULT> | |
5925 | <RESULT IF_PASS POSITIVE> | |
5926 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5927 | <END_RESULT> | |
5928 | <END_TC> | |
5929 | :exmp. | |
5930 | ||
5931 | .*---------------------------------------------------------------------* | |
5932 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->FromClause->VariableRef | |
5933 | .*---------------------------------------------------------------------* | |
5934 | :xmp tab=0. | |
5935 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->FromClause->VariableRef> | |
5936 | <COMPILE> | |
5937 | <VERDICT_LEAF PASS> | |
5938 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5939 | module ModuleA { | |
5940 | type record MyType1 { | |
5941 | integer field1 | |
5942 | } | |
5943 | type port MyPortType message { inout MyType1; } | |
5944 | type component MyCompType { | |
5945 | port MyPortType MyPort; | |
5946 | var MyType1 MyVar1; | |
5947 | } | |
5948 | altstep MyAltstep11() runs on MyCompType {[] MyPort.receive from MyVar1.Nonexi11 {}} | |
5949 | } | |
5950 | <END_MODULE> | |
5951 | <RESULT IF_PASS COUNT 1> | |
5952 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi11 | |
5953 | <END_RESULT> | |
5954 | <RESULT IF_PASS COUNT 1> | |
5955 | (?is)\berror: | |
5956 | <END_RESULT> | |
5957 | <RESULT IF_PASS POSITIVE> | |
5958 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5959 | <END_RESULT> | |
5960 | <END_TC> | |
5961 | :exmp. | |
5962 | ||
5963 | .*---------------------------------------------------------------------* | |
5964 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef | |
5965 | .*---------------------------------------------------------------------* | |
5966 | :xmp tab=0. | |
5967 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef> | |
5968 | <COMPILE> | |
5969 | <VERDICT_LEAF PASS> | |
5970 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5971 | module ModuleA { | |
5972 | type port MyPortType message { inout integer; } | |
5973 | type component MyCompType { | |
5974 | port MyPortType MyPort; | |
5975 | } | |
5976 | altstep MyAltstep12() runs on MyCompType {[] MyPort.receive from Nonexi12() {}} | |
5977 | } | |
5978 | <END_MODULE> | |
5979 | <RESULT IF_PASS COUNT 1> | |
5980 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
5981 | <END_RESULT> | |
5982 | <RESULT IF_PASS COUNT 1> | |
5983 | (?is)\berror: | |
5984 | <END_RESULT> | |
5985 | <RESULT IF_PASS POSITIVE> | |
5986 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
5987 | <END_RESULT> | |
5988 | <END_TC> | |
5989 | :exmp. | |
5990 | ||
5991 | .*---------------------------------------------------------------------* | |
5992 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->PortRedirect->ValueSpec | |
5993 | .*---------------------------------------------------------------------* | |
5994 | :xmp tab=0. | |
5995 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->PortRedirect->ValueSpec> | |
5996 | <COMPILE> | |
5997 | <VERDICT_LEAF PASS> | |
5998 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
5999 | module ModuleA { | |
6000 | type port MyPortType message { inout integer; } | |
6001 | type component MyCompType { | |
6002 | port MyPortType MyPort; | |
6003 | } | |
6004 | altstep MyAltstep13() runs on MyCompType {[] MyPort.receive(?) -> value Nonexi13 {}} | |
6005 | } | |
6006 | <END_MODULE> | |
6007 | <RESULT IF_PASS COUNT 1> | |
6008 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6009 | <END_RESULT> | |
6010 | <RESULT IF_PASS COUNT 1> | |
6011 | (?is)\berror: | |
6012 | <END_RESULT> | |
6013 | <RESULT IF_PASS POSITIVE> | |
6014 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6015 | <END_RESULT> | |
6016 | <END_TC> | |
6017 | :exmp. | |
6018 | ||
6019 | .*---------------------------------------------------------------------* | |
6020 | :h3.TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->PortRedirect->SenderSpec | |
6021 | .*---------------------------------------------------------------------* | |
6022 | :xmp tab=0. | |
6023 | <TC - TTCN-3::AltstepDef->ReceiveOp: GuardStatement->AltstepInstance->GuardOp->ReceiveStatement->PortReceiveOp->PortRedirect->SenderSpec> | |
6024 | <COMPILE> | |
6025 | <VERDICT_LEAF PASS> | |
6026 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6027 | module ModuleA { | |
6028 | type port MyPortType message { inout integer; } | |
6029 | type component MyCompType { | |
6030 | port MyPortType MyPort; | |
6031 | } | |
6032 | altstep MyAltstep15() runs on MyCompType {[] MyPort.receive(?) -> sender Nonexi15 {}} | |
6033 | } | |
6034 | <END_MODULE> | |
6035 | <RESULT IF_PASS COUNT 1> | |
6036 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6037 | <END_RESULT> | |
6038 | <RESULT IF_PASS COUNT 1> | |
6039 | (?is)\berror: | |
6040 | <END_RESULT> | |
6041 | <RESULT IF_PASS POSITIVE> | |
6042 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6043 | <END_RESULT> | |
6044 | <END_TC> | |
6045 | :exmp. | |
6046 | ||
6047 | .*---------------------------------------------------------------------* | |
6048 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->Port | |
6049 | .*---------------------------------------------------------------------* | |
6050 | :xmp tab=0. | |
6051 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->Port> | |
6052 | <COMPILE> | |
6053 | <VERDICT_LEAF PASS> | |
6054 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6055 | module ModuleA { | |
6056 | type port MyPortType message { inout verdicttype; } | |
6057 | type component MyCompType { | |
6058 | port MyPortType MyPort; | |
6059 | } | |
6060 | altstep MyAltstep16() runs on MyCompType {[] Nonexi16.trigger {}} | |
6061 | } | |
6062 | <END_MODULE> | |
6063 | <RESULT IF_PASS COUNT 1> | |
6064 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6065 | <END_RESULT> | |
6066 | <RESULT IF_PASS COUNT 1> | |
6067 | (?is)\berror: | |
6068 | <END_RESULT> | |
6069 | <RESULT IF_PASS POSITIVE> | |
6070 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6071 | <END_RESULT> | |
6072 | <END_TC> | |
6073 | :exmp. | |
6074 | ||
6075 | .*---------------------------------------------------------------------* | |
6076 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->Port->ArrayOrBitRef | |
6077 | .*---------------------------------------------------------------------* | |
6078 | :xmp tab=0. | |
6079 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->Port->ArrayOrBitRef> | |
6080 | <COMPILE> | |
6081 | <VERDICT_LEAF PASS> | |
6082 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6083 | module ModuleA { | |
6084 | type port MyPortType message { inout float, verdicttype; } | |
6085 | type component MyCompType { | |
6086 | port MyPortType MyPortArray[(10-7)*7]; | |
6087 | } | |
6088 | altstep MyAltstep17() runs on MyCompType {[] MyPortArray[Nonexi17].trigger {}} | |
6089 | } | |
6090 | <END_MODULE> | |
6091 | <RESULT IF_PASS COUNT 1> | |
6092 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6093 | <END_RESULT> | |
6094 | <RESULT IF_PASS COUNT 1> | |
6095 | (?is)\berror: | |
6096 | <END_RESULT> | |
6097 | <RESULT IF_PASS POSITIVE> | |
6098 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6099 | <END_RESULT> | |
6100 | <END_TC> | |
6101 | :exmp. | |
6102 | ||
6103 | .*---------------------------------------------------------------------* | |
6104 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortTriggerOp | |
6105 | .*---------------------------------------------------------------------* | |
6106 | :xmp tab=0. | |
6107 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortTriggerOp> | |
6108 | <COMPILE> | |
6109 | <VERDICT_LEAF PASS> | |
6110 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6111 | module ModuleA { | |
6112 | type port MyPortType message { inout integer; in boolean; } | |
6113 | type component MyCompType { | |
6114 | port MyPortType MyPort; | |
6115 | } | |
6116 | // others should be covered in 'TemplateInstance' | |
6117 | altstep MyAltstep18() runs on MyCompType {[] MyPort.trigger(Nonexi18 + 2) {}} | |
6118 | } | |
6119 | <END_MODULE> | |
6120 | <RESULT IF_PASS COUNT 1> | |
6121 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6122 | <END_RESULT> | |
6123 | <RESULT IF_PASS COUNT 1> | |
6124 | (?is)\berror: | |
6125 | <END_RESULT> | |
6126 | <RESULT IF_PASS POSITIVE> | |
6127 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6128 | <END_RESULT> | |
6129 | <END_TC> | |
6130 | :exmp. | |
6131 | ||
6132 | .*---------------------------------------------------------------------* | |
6133 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->FromClause->VariableRef | |
6134 | .*---------------------------------------------------------------------* | |
6135 | :xmp tab=0. | |
6136 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->FromClause->VariableRef> | |
6137 | <COMPILE> | |
6138 | <VERDICT_LEAF PASS> | |
6139 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6140 | module ModuleA { | |
6141 | type port MyPortType message { inout MyType1; } | |
6142 | type record MyType1 { | |
6143 | integer field1 | |
6144 | } | |
6145 | type component MyCompType { | |
6146 | port MyPortType MyPort; | |
6147 | var MyType1 MyVar1; | |
6148 | } | |
6149 | // GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->FromClause->VariableRef | |
6150 | // others should be covered in 'VariableRef' | |
6151 | altstep MyAltstep19() runs on MyCompType {[] MyPort.trigger from MyVar1.Nonexi19 {}} | |
6152 | } | |
6153 | <END_MODULE> | |
6154 | <RESULT IF_PASS COUNT 1> | |
6155 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi19 | |
6156 | <END_RESULT> | |
6157 | <RESULT IF_PASS COUNT 1> | |
6158 | (?is)\berror: | |
6159 | <END_RESULT> | |
6160 | <RESULT IF_PASS POSITIVE> | |
6161 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6162 | <END_RESULT> | |
6163 | <END_TC> | |
6164 | :exmp. | |
6165 | ||
6166 | .*---------------------------------------------------------------------* | |
6167 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef | |
6168 | .*---------------------------------------------------------------------* | |
6169 | :xmp tab=0. | |
6170 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef> | |
6171 | <COMPILE> | |
6172 | <VERDICT_LEAF PASS> | |
6173 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6174 | module ModuleA.objid {0 4 0} { | |
6175 | type port MyPortType message { in charstring; } | |
6176 | type component MyCompType { | |
6177 | port MyPortType MyPort; | |
6178 | } | |
6179 | // others should be covered in 'FunctionRef' | |
6180 | altstep MyAltstep20() runs on MyCompType {[] MyPort.trigger from ModuleA.objid {0 4 0}.Nonexi20() {}} | |
6181 | } | |
6182 | <END_MODULE> | |
6183 | <RESULT IF_PASS COUNT 1> | |
6184 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6185 | <END_RESULT> | |
6186 | <RESULT IF_PASS COUNT 1> | |
6187 | (?is)\berror: | |
6188 | <END_RESULT> | |
6189 | <RESULT IF_PASS POSITIVE> | |
6190 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6191 | <END_RESULT> | |
6192 | <END_TC> | |
6193 | :exmp. | |
6194 | ||
6195 | .*---------------------------------------------------------------------* | |
6196 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->PortRedirect->ValueSpec | |
6197 | .*---------------------------------------------------------------------* | |
6198 | :xmp tab=0. | |
6199 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->PortRedirect->ValueSpec> | |
6200 | <COMPILE> | |
6201 | <VERDICT_LEAF PASS> | |
6202 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6203 | module ModuleA { | |
6204 | type port MyPortType message { inout MyType1; } | |
6205 | type record MyType1 { | |
6206 | integer field1 | |
6207 | } | |
6208 | type component MyCompType { | |
6209 | port MyPortType MyPort; | |
6210 | var MyType1 MyVar1; | |
6211 | } | |
6212 | // others should be covered in 'VariableRef' | |
6213 | altstep MyAltstep21() runs on MyCompType {[] MyPort.trigger(?) -> value MyVar1.Nonexi21 {}} | |
6214 | } | |
6215 | <END_MODULE> | |
6216 | <RESULT IF_PASS COUNT 1> | |
6217 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi21 | |
6218 | <END_RESULT> | |
6219 | <RESULT IF_PASS COUNT 1> | |
6220 | (?is)\berror: | |
6221 | <END_RESULT> | |
6222 | <RESULT IF_PASS POSITIVE> | |
6223 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6224 | <END_RESULT> | |
6225 | <END_TC> | |
6226 | :exmp. | |
6227 | ||
6228 | .*---------------------------------------------------------------------* | |
6229 | :h3.TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->PortRedirect->SenderSpec | |
6230 | .*---------------------------------------------------------------------* | |
6231 | :xmp tab=0. | |
6232 | <TC - TTCN-3::AltstepDef->TriggerOp: GuardStatement->AltstepInstance->GuardOp->TriggerStatement->PortReceiveOp->PortRedirect->SenderSpec> | |
6233 | <COMPILE> | |
6234 | <VERDICT_LEAF PASS> | |
6235 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6236 | module ModuleA { | |
6237 | type port MyPortType message { inout MyType1; } | |
6238 | type record MyType1 { | |
6239 | integer field1 | |
6240 | } | |
6241 | type component MyCompType { | |
6242 | port MyPortType MyPort; | |
6243 | var MyType1 MyVar1; | |
6244 | var MyCompType MyVar2; | |
6245 | } | |
6246 | // others should be covered in 'VariableRef' | |
6247 | altstep MyAltstep22() runs on MyCompType {[] MyPort.trigger(?) -> value MyVar1 sender Nonexi22 {}} | |
6248 | } | |
6249 | <END_MODULE> | |
6250 | <RESULT IF_PASS COUNT 1> | |
6251 | (?im)\berror\b.+?no.+?definition.+?Nonexi22 | |
6252 | <END_RESULT> | |
6253 | <RESULT IF_PASS COUNT 1> | |
6254 | (?is)\berror: | |
6255 | <END_RESULT> | |
6256 | <RESULT IF_PASS POSITIVE> | |
6257 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6258 | <END_RESULT> | |
6259 | <END_TC> | |
6260 | :exmp. | |
6261 | ||
6262 | .*---------------------------------------------------------------------* | |
6263 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port | |
6264 | .*---------------------------------------------------------------------* | |
6265 | :xmp tab=0. | |
6266 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port> | |
6267 | <COMPILE> | |
6268 | <VERDICT_LEAF PASS> | |
6269 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6270 | module ModuleA { | |
6271 | signature MyProc1(); | |
6272 | type port MyPortType2 procedure { in MyProc1 } | |
6273 | type component MyCompType { | |
6274 | port MyPortType2 MyPort2; | |
6275 | } | |
6276 | // GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port | |
6277 | altstep MyAltstep24() runs on MyCompType {[] Nonexi24.getcall {}} | |
6278 | } | |
6279 | <END_MODULE> | |
6280 | <RESULT IF_PASS COUNT 1> | |
6281 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6282 | <END_RESULT> | |
6283 | <RESULT IF_PASS COUNT 1> | |
6284 | (?is)\berror: | |
6285 | <END_RESULT> | |
6286 | <RESULT IF_PASS POSITIVE> | |
6287 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6288 | <END_RESULT> | |
6289 | <END_TC> | |
6290 | :exmp. | |
6291 | ||
6292 | .*---------------------------------------------------------------------* | |
6293 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port->ArrayOrBitRef | |
6294 | .*---------------------------------------------------------------------* | |
6295 | :xmp tab=0. | |
6296 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port->ArrayOrBitRef> | |
6297 | <COMPILE> | |
6298 | <VERDICT_LEAF PASS> | |
6299 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6300 | module ModuleA { | |
6301 | signature MyProc1(); | |
6302 | type port MyPortType2 procedure { in MyProc1 } | |
6303 | type component MyCompType { | |
6304 | port MyPortType2 MyPortArray2[10]; | |
6305 | } | |
6306 | // GuardStatement->AltstepInstance->GuardOp->GetCallStatement->Port->ArrayOrBitRef | |
6307 | altstep MyAltstep25() runs on MyCompType {[] MyPortArray2[Nonexi25].getcall {}} | |
6308 | } | |
6309 | <END_MODULE> | |
6310 | <RESULT IF_PASS COUNT 1> | |
6311 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6312 | <END_RESULT> | |
6313 | <RESULT IF_PASS COUNT 1> | |
6314 | (?is)\berror: | |
6315 | <END_RESULT> | |
6316 | <RESULT IF_PASS POSITIVE> | |
6317 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6318 | <END_RESULT> | |
6319 | <END_TC> | |
6320 | :exmp. | |
6321 | ||
6322 | .*---------------------------------------------------------------------* | |
6323 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortTriggerOp | |
6324 | .*---------------------------------------------------------------------* | |
6325 | :xmp tab=0. | |
6326 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortTriggerOp> | |
6327 | <COMPILE> | |
6328 | <VERDICT_LEAF PASS> | |
6329 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6330 | module ModuleA { | |
6331 | type record MyType1 { | |
6332 | integer field1 | |
6333 | } | |
6334 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6335 | type port MyPortType2 procedure { in MyProc2 } | |
6336 | type component MyCompType { | |
6337 | port MyPortType2 MyPort2; | |
6338 | } | |
6339 | // others should be covered in 'TemplateInstance' | |
6340 | // TR 612: getcall parameter not supported, parse error | |
6341 | altstep MyAltstep26() runs on MyCompType {[] MyPort2.getcall(MyProc2:{Nonexi26}) {}} | |
6342 | } | |
6343 | <END_MODULE> | |
6344 | <RESULT IF_PASS COUNT 1> | |
6345 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6346 | <END_RESULT> | |
6347 | <RESULT IF_PASS COUNT 1> | |
6348 | (?is)\berror: | |
6349 | <END_RESULT> | |
6350 | <RESULT IF_PASS POSITIVE> | |
6351 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6352 | <END_RESULT> | |
6353 | <RESULT IF_FAIL COUNT 1> | |
6354 | (?im)parse.+?error | |
6355 | <END_RESULT> | |
6356 | <RESULT IF_FAIL COUNT 1> | |
6357 | (?is)\berror: | |
6358 | <END_RESULT> | |
6359 | <END_TC> | |
6360 | :exmp. | |
6361 | ||
6362 | .*---------------------------------------------------------------------* | |
6363 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->FromClause->VariableRef | |
6364 | .*---------------------------------------------------------------------* | |
6365 | :xmp tab=0. | |
6366 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->FromClause->VariableRef> | |
6367 | <COMPILE> | |
6368 | <VERDICT_LEAF PASS> | |
6369 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6370 | module ModuleA { | |
6371 | type record of integer MyType; | |
6372 | signature MyProc1(); | |
6373 | type port MyPortType2 procedure { in MyProc1 } | |
6374 | type record MyType1 { | |
6375 | integer field1 | |
6376 | } | |
6377 | type component MyCompType { | |
6378 | port MyPortType2 MyPort2; | |
6379 | var MyType1 MyVar1; | |
6380 | } | |
6381 | // others should be covered in 'VariableRef' | |
6382 | altstep MyAltstep27() runs on MyCompType {[] MyPort2.getcall from MyVar1.Nonexi27 {}} | |
6383 | } | |
6384 | <END_MODULE> | |
6385 | <RESULT IF_PASS COUNT 1> | |
6386 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi27 | |
6387 | <END_RESULT> | |
6388 | <RESULT IF_PASS COUNT 1> | |
6389 | (?is)\berror: | |
6390 | <END_RESULT> | |
6391 | <RESULT IF_PASS POSITIVE> | |
6392 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6393 | <END_RESULT> | |
6394 | <END_TC> | |
6395 | :exmp. | |
6396 | ||
6397 | .*---------------------------------------------------------------------* | |
6398 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef | |
6399 | .*---------------------------------------------------------------------* | |
6400 | :xmp tab=0. | |
6401 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->FromClause->FunctionInstance->FunctionRef> | |
6402 | <COMPILE> | |
6403 | <VERDICT_LEAF PASS> | |
6404 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6405 | module ModuleA.objid {0 4 0} { | |
6406 | signature MyProc1(); | |
6407 | type port MyPortType2 procedure { in MyProc1 } | |
6408 | type component MyCompType { | |
6409 | port MyPortType2 MyPort2; | |
6410 | } | |
6411 | // others should be covered in 'FunctionRef' | |
6412 | altstep MyAltstep28() runs on MyCompType {[] MyPort2.getcall from ModuleA.objid {0 4 0}.Nonexi28() {}} | |
6413 | } | |
6414 | <END_MODULE> | |
6415 | <RESULT IF_PASS COUNT 1> | |
6416 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6417 | <END_RESULT> | |
6418 | <RESULT IF_PASS COUNT 1> | |
6419 | (?is)\berror: | |
6420 | <END_RESULT> | |
6421 | <RESULT IF_PASS POSITIVE> | |
6422 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6423 | <END_RESULT> | |
6424 | <END_TC> | |
6425 | :exmp. | |
6426 | ||
6427 | .*---------------------------------------------------------------------* | |
6428 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ValueSpec | |
6429 | .*---------------------------------------------------------------------* | |
6430 | :xmp tab=0. | |
6431 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ValueSpec> | |
6432 | <COMPILE> | |
6433 | <VERDICT_LEAF PASS> | |
6434 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6435 | module ModuleA { | |
6436 | type record of integer MyType; | |
6437 | signature MyProc1(); | |
6438 | type port MyPortType2 procedure { in MyProc1 } | |
6439 | type record MyType1 { | |
6440 | integer field1 | |
6441 | } | |
6442 | type component MyCompType { | |
6443 | port MyPortType2 MyPort2; | |
6444 | var MyType1 MyVar1; | |
6445 | } | |
6446 | // others should be covered in 'VariableRef' | |
6447 | // TR 611: Memory leak in compiler | |
6448 | // NOTE: fault in TTCN-3 BNF (mockup v1): value redirect shall not be allowed for getcall | |
6449 | altstep MyAltstep29() runs on MyCompType {[] MyPort2.getcall(?) -> value MyVar1.Nonexi29 {}} | |
6450 | } | |
6451 | <END_MODULE> | |
6452 | <RESULT IF_PASS COUNT 1> | |
6453 | (?im)syntax.+?\berror\b | |
6454 | <END_RESULT> | |
6455 | <RESULT IF_PASS COUNT 1> | |
6456 | (?is)\berror: | |
6457 | <END_RESULT> | |
6458 | <END_TC> | |
6459 | :exmp. | |
6460 | ||
6461 | .*---------------------------------------------------------------------* | |
6462 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableAssignment1 | |
6463 | .*---------------------------------------------------------------------* | |
6464 | :xmp tab=0. | |
6465 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableAssignment1> | |
6466 | <COMPILE> | |
6467 | <VERDICT_LEAF PASS> | |
6468 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6469 | module ModuleA { | |
6470 | type record of integer MyType; | |
6471 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6472 | type port MyPortType2 procedure { in MyProc2 } | |
6473 | type record MyType1 { | |
6474 | integer field1 | |
6475 | } | |
6476 | type component MyCompType { | |
6477 | port MyPortType2 MyPort2; | |
6478 | var MyType1 MyVar1; | |
6479 | } | |
6480 | // others should be covered in 'VariableRef' | |
6481 | // TR 610: VariableAssignment is not supported in ParaSpec | |
6482 | altstep MyAltstep30() runs on MyCompType {[] MyPort2.getcall(MyProc2:{?}) -> param (MyVar1.Nonexi30 := MyParam1) {}} | |
6483 | } | |
6484 | <END_MODULE> | |
6485 | <RESULT IF_PASS COUNT 1> | |
6486 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi30 | |
6487 | <END_RESULT> | |
6488 | <RESULT IF_PASS COUNT 1> | |
6489 | (?is)\berror: | |
6490 | <END_RESULT> | |
6491 | <RESULT IF_PASS POSITIVE> | |
6492 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6493 | <END_RESULT> | |
6494 | <END_TC> | |
6495 | :exmp. | |
6496 | ||
6497 | .*---------------------------------------------------------------------* | |
6498 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableAssignment2 | |
6499 | .*---------------------------------------------------------------------* | |
6500 | :xmp tab=0. | |
6501 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableAssignment2> | |
6502 | <COMPILE> | |
6503 | <VERDICT_LEAF PASS> | |
6504 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6505 | module ModuleA { | |
6506 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6507 | type port MyPortType2 procedure { in MyProc2 } | |
6508 | type record MyType1 { | |
6509 | integer field1 | |
6510 | } | |
6511 | type component MyCompType { | |
6512 | port MyPortType2 MyPort2; | |
6513 | var MyType1 MyVar1; | |
6514 | } | |
6515 | // TR 610: VariableAssignment is not supported in ParaSpec | |
6516 | altstep MyAltstep31() runs on MyCompType {[] MyPort2.getcall(MyProc2:{?}) -> param (MyVar1 := Nonexi31) {}} | |
6517 | } | |
6518 | <END_MODULE> | |
6519 | <RESULT IF_PASS COUNT 1> | |
6520 | (?im)\berror\b.+?signature.+?not.+?have.+?parameter.+?Nonexi31 | |
6521 | <END_RESULT> | |
6522 | <RESULT IF_PASS COUNT 1> | |
6523 | (?is)\berror: | |
6524 | <END_RESULT> | |
6525 | <RESULT IF_PASS POSITIVE> | |
6526 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6527 | <END_RESULT> | |
6528 | <END_TC> | |
6529 | :exmp. | |
6530 | ||
6531 | .*---------------------------------------------------------------------* | |
6532 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableList | |
6533 | .*---------------------------------------------------------------------* | |
6534 | :xmp tab=0. | |
6535 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirectWithParam->ParaSpec->VariableList> | |
6536 | <COMPILE> | |
6537 | <VERDICT_LEAF PASS> | |
6538 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6539 | module ModuleA { | |
6540 | type record MyType1 { | |
6541 | integer field1 | |
6542 | } | |
6543 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6544 | type port MyPortType2 procedure { in MyProc2 } | |
6545 | type component MyCompType { | |
6546 | port MyPortType2 MyPort2; | |
6547 | } | |
6548 | // others should be covered in 'VariableRef' | |
6549 | // TR 612: getcall parameter not supported, parse error | |
6550 | altstep MyAltstep32() runs on MyCompType {[] MyPort2.getcall(MyProc2:{?}) -> param (Nonexi32) {}} | |
6551 | } | |
6552 | <END_MODULE> | |
6553 | <RESULT IF_PASS COUNT 1> | |
6554 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6555 | <END_RESULT> | |
6556 | <RESULT IF_PASS COUNT 1> | |
6557 | (?is)\berror: | |
6558 | <END_RESULT> | |
6559 | <RESULT IF_PASS POSITIVE> | |
6560 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6561 | <END_RESULT> | |
6562 | <END_TC> | |
6563 | :exmp. | |
6564 | ||
6565 | .*---------------------------------------------------------------------* | |
6566 | :h3.TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirect->SenderSpec | |
6567 | .*---------------------------------------------------------------------* | |
6568 | :xmp tab=0. | |
6569 | <TC - TTCN-3::AltstepDef->GetcallOp: GuardStatement->AltstepInstance->GuardOp->GetCallStatement->PortReceiveOp->PortRedirect->SenderSpec> | |
6570 | <COMPILE> | |
6571 | <VERDICT_LEAF PASS> | |
6572 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6573 | module ModuleA { | |
6574 | type record of integer MyType; | |
6575 | signature MyProc1(); | |
6576 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6577 | type port MyPortType message { inout MyType; inout MyType1; } | |
6578 | type port MyPortType2 procedure { in MyProc2 } | |
6579 | type record MyType1 { | |
6580 | integer field1 | |
6581 | } | |
6582 | type component MyCompType { | |
6583 | port MyPortType2 MyPort2; | |
6584 | var MyType1 MyVar1; | |
6585 | } | |
6586 | // others should be covered in 'VariableRef' | |
6587 | // TR 612: getcall parameter not supported, parse error | |
6588 | altstep MyAltstep33() runs on MyCompType {[] MyPort2.getcall(MyProc2:{?}) -> sender MyVar1.Nonexi33 {}} | |
6589 | } | |
6590 | <END_MODULE> | |
6591 | <RESULT IF_PASS COUNT 1> | |
6592 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi33 | |
6593 | <END_RESULT> | |
6594 | <RESULT IF_PASS COUNT 1> | |
6595 | (?is)\berror: | |
6596 | <END_RESULT> | |
6597 | <RESULT IF_PASS POSITIVE> | |
6598 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6599 | <END_RESULT> | |
6600 | <END_TC> | |
6601 | :exmp. | |
6602 | ||
6603 | .*---------------------------------------------------------------------* | |
6604 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->Port | |
6605 | .*---------------------------------------------------------------------* | |
6606 | :xmp tab=0. | |
6607 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->Port> | |
6608 | <COMPILE> | |
6609 | <VERDICT_LEAF PASS> | |
6610 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6611 | module ModuleA { | |
6612 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6613 | type port MyPortType2 procedure { in MyProc2 } | |
6614 | type record MyType1 { | |
6615 | integer field1 | |
6616 | } | |
6617 | type component MyCompType { | |
6618 | port MyPortType2 MyPort; | |
6619 | } | |
6620 | altstep MyAltstep34() runs on MyCompType {[] Nonexi34.catch {}} | |
6621 | } | |
6622 | <END_MODULE> | |
6623 | <RESULT IF_PASS COUNT 1> | |
6624 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6625 | <END_RESULT> | |
6626 | <RESULT IF_PASS COUNT 1> | |
6627 | (?is)\berror: | |
6628 | <END_RESULT> | |
6629 | <RESULT IF_PASS POSITIVE> | |
6630 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6631 | <END_RESULT> | |
6632 | <END_TC> | |
6633 | :exmp. | |
6634 | ||
6635 | .*---------------------------------------------------------------------* | |
6636 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->Port->ArrayOrBitRef | |
6637 | .*---------------------------------------------------------------------* | |
6638 | :xmp tab=0. | |
6639 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->Port->ArrayOrBitRef> | |
6640 | <COMPILE> | |
6641 | <VERDICT_LEAF PASS> | |
6642 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6643 | module ModuleA { | |
6644 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6645 | type port MyPortType2 procedure { inout MyProc2 } | |
6646 | type record MyType1 { | |
6647 | integer field1 | |
6648 | } | |
6649 | type component MyCompType { | |
6650 | port MyPortType2 MyPortArray2[10]; | |
6651 | } | |
6652 | altstep MyAltstep35() runs on MyCompType {[] MyPortArray2[Nonexi35 + 2].catch {}} | |
6653 | } | |
6654 | <END_MODULE> | |
6655 | <RESULT IF_PASS COUNT 1> | |
6656 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6657 | <END_RESULT> | |
6658 | <RESULT IF_PASS COUNT 1> | |
6659 | (?is)\berror: | |
6660 | <END_RESULT> | |
6661 | <RESULT IF_PASS POSITIVE> | |
6662 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6663 | <END_RESULT> | |
6664 | <END_TC> | |
6665 | :exmp. | |
6666 | ||
6667 | .*---------------------------------------------------------------------* | |
6668 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp | |
6669 | .*---------------------------------------------------------------------* | |
6670 | :xmp tab=0. | |
6671 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp> | |
6672 | <COMPILE> | |
6673 | <VERDICT_LEAF PASS> | |
6674 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6675 | module ModuleA { | |
6676 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6677 | type port MyPortType2 procedure { inout MyProc2 } | |
6678 | type record MyType1 { | |
6679 | integer field1 | |
6680 | } | |
6681 | type component MyCompType { | |
6682 | port MyPortType2 MyPort2; | |
6683 | } | |
6684 | // others should be covered in 'TemplateInstance' | |
6685 | altstep MyAltstep36() runs on MyCompType {[] MyPort2.catch(MyProc2, Nonexi36 + 2) {}} | |
6686 | } | |
6687 | <END_MODULE> | |
6688 | <RESULT IF_PASS COUNT 1> | |
6689 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6690 | <END_RESULT> | |
6691 | <RESULT IF_PASS COUNT 1> | |
6692 | (?is)\berror: | |
6693 | <END_RESULT> | |
6694 | <RESULT IF_PASS POSITIVE> | |
6695 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6696 | <END_RESULT> | |
6697 | <END_TC> | |
6698 | :exmp. | |
6699 | ||
6700 | .*---------------------------------------------------------------------* | |
6701 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->SignatureIdentifier | |
6702 | .*---------------------------------------------------------------------* | |
6703 | :xmp tab=0. | |
6704 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->SignatureIdentifier> | |
6705 | <COMPILE> | |
6706 | <VERDICT_LEAF PASS> | |
6707 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6708 | module ModuleA.objid {0 4 0} { | |
6709 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6710 | type port MyPortType2 procedure { inout MyProc2 } | |
6711 | type record MyType1 { | |
6712 | integer field1 | |
6713 | } | |
6714 | type component MyCompType { | |
6715 | port MyPortType2 MyPort2; | |
6716 | } | |
6717 | // others should be covered in 'GlobalModuleId' | |
6718 | // TR 671: segfault and fatal error when using nonexistent signature symbol in catch operation | |
6719 | altstep MyAltstep37() runs on MyCompType {[] MyPort2.catch(ModuleA.objid {0 4 0}.Nonexi37, 1.0) {}} | |
6720 | } | |
6721 | <END_MODULE> | |
6722 | <RESULT IF_PASS COUNT 1> | |
6723 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6724 | <END_RESULT> | |
6725 | <RESULT IF_PASS COUNT 1> | |
6726 | (?is)\berror: | |
6727 | <END_RESULT> | |
6728 | <RESULT IF_PASS POSITIVE> | |
6729 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6730 | <END_RESULT> | |
6731 | <END_TC> | |
6732 | :exmp. | |
6733 | ||
6734 | .*---------------------------------------------------------------------* | |
6735 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->FromClause->VariableRef | |
6736 | .*---------------------------------------------------------------------* | |
6737 | :xmp tab=0. | |
6738 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->FromClause->VariableRef> | |
6739 | <COMPILE> | |
6740 | <VERDICT_LEAF PASS> | |
6741 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6742 | module ModuleA { | |
6743 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6744 | type port MyPortType2 procedure { inout MyProc2 } | |
6745 | type record MyType1 { | |
6746 | integer field1 | |
6747 | } | |
6748 | type component MyCompType { | |
6749 | port MyPortType2 MyPort2; | |
6750 | var MyType1 MyVar1; | |
6751 | } | |
6752 | // others should be covered in 'VariableRef' | |
6753 | altstep MyAltstep38() runs on MyCompType {[] MyPort2.catch from MyVar1.Nonexi38 {}} | |
6754 | } | |
6755 | <END_MODULE> | |
6756 | <RESULT IF_PASS COUNT 1> | |
6757 | (?im)\berror\b.+?reference.+?non.*?existent.+?field.+?Nonexi38 | |
6758 | <END_RESULT> | |
6759 | <RESULT IF_PASS COUNT 1> | |
6760 | (?is)\berror: | |
6761 | <END_RESULT> | |
6762 | <RESULT IF_PASS POSITIVE> | |
6763 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6764 | <END_RESULT> | |
6765 | <END_TC> | |
6766 | :exmp. | |
6767 | ||
6768 | .*---------------------------------------------------------------------* | |
6769 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->FromClause->FunctionInstance->FunctionRef | |
6770 | .*---------------------------------------------------------------------* | |
6771 | :xmp tab=0. | |
6772 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->FromClause->FunctionInstance->FunctionRef> | |
6773 | <COMPILE> | |
6774 | <VERDICT_LEAF PASS> | |
6775 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6776 | module ModuleA.objid {0 4 0} { | |
6777 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6778 | type port MyPortType2 procedure { inout MyProc2 } | |
6779 | type record MyType1 { | |
6780 | integer field1 | |
6781 | } | |
6782 | type component MyCompType { | |
6783 | port MyPortType2 MyPort2; | |
6784 | } | |
6785 | // others should be covered in 'FunctionRef' | |
6786 | altstep MyAltstep39() runs on MyCompType {[] MyPort2.catch from ModuleA.objid {0 4 0}.Nonexi39() {}} | |
6787 | } | |
6788 | <END_MODULE> | |
6789 | <RESULT IF_PASS COUNT 1> | |
6790 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6791 | <END_RESULT> | |
6792 | <RESULT IF_PASS COUNT 1> | |
6793 | (?is)\berror: | |
6794 | <END_RESULT> | |
6795 | <RESULT IF_PASS POSITIVE> | |
6796 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6797 | <END_RESULT> | |
6798 | <END_TC> | |
6799 | :exmp. | |
6800 | ||
6801 | .*---------------------------------------------------------------------* | |
6802 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->PortRedirect->ValueSpec | |
6803 | .*---------------------------------------------------------------------* | |
6804 | :xmp tab=0. | |
6805 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->PortRedirect->ValueSpec> | |
6806 | <COMPILE> | |
6807 | <VERDICT_LEAF PASS> | |
6808 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6809 | module ModuleA { | |
6810 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6811 | type port MyPortType2 procedure { inout MyProc2 } | |
6812 | type record MyType1 { | |
6813 | integer field1 | |
6814 | } | |
6815 | type component MyCompType { | |
6816 | port MyPortType2 MyPort2; | |
6817 | var MyType1 MyVar1; | |
6818 | } | |
6819 | // others should be covered in 'VariableRef' | |
6820 | altstep MyAltstep40() runs on MyCompType {[] MyPort2.catch(MyProc2, float:?) -> value MyVar1.Nonexi40 {}} | |
6821 | } | |
6822 | <END_MODULE> | |
6823 | <RESULT IF_PASS COUNT 1> | |
6824 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi40 | |
6825 | <END_RESULT> | |
6826 | <RESULT IF_PASS COUNT 1> | |
6827 | (?is)\berror: | |
6828 | <END_RESULT> | |
6829 | <RESULT IF_PASS POSITIVE> | |
6830 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6831 | <END_RESULT> | |
6832 | <END_TC> | |
6833 | :exmp. | |
6834 | ||
6835 | .*---------------------------------------------------------------------* | |
6836 | :h3.TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->PortRedirect->SenderSpec | |
6837 | .*---------------------------------------------------------------------* | |
6838 | :xmp tab=0. | |
6839 | <TC - TTCN-3::AltstepDef->CatchOp: GuardStatement->AltstepInstance->GuardOp->CatchStatement->PortCatchOp->PortRedirect->SenderSpec> | |
6840 | <COMPILE> | |
6841 | <VERDICT_LEAF PASS> | |
6842 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6843 | module ModuleA { | |
6844 | signature MyProc2(MyType1 MyParam1) exception (integer, float, MyType1); | |
6845 | type port MyPortType2 procedure { inout MyProc2 } | |
6846 | type record MyType1 { | |
6847 | integer field1 | |
6848 | } | |
6849 | type component MyCompType { | |
6850 | port MyPortType2 MyPort2; | |
6851 | var MyType1 MyVar1; | |
6852 | var MyCompType MyVar2; | |
6853 | } | |
6854 | // others should be covered in 'VariableRef' | |
6855 | altstep MyAltstep41() runs on MyCompType {[] MyPort2.catch(MyProc2, ?) -> value MyVar1 sender Nonexi41 {}} | |
6856 | } | |
6857 | <END_MODULE> | |
6858 | <RESULT IF_PASS COUNT 1> | |
6859 | (?im)\berror\b.+?no.+?definition.+?Nonexi41 | |
6860 | <END_RESULT> | |
6861 | <RESULT IF_PASS COUNT 1> | |
6862 | (?is)\berror: | |
6863 | <END_RESULT> | |
6864 | <RESULT IF_PASS POSITIVE> | |
6865 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6866 | <END_RESULT> | |
6867 | <END_TC> | |
6868 | :exmp. | |
6869 | ||
6870 | .*---------------------------------------------------------------------* | |
6871 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->Port | |
6872 | .*---------------------------------------------------------------------* | |
6873 | :xmp tab=0. | |
6874 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->Port> | |
6875 | <COMPILE> | |
6876 | <VERDICT_LEAF PASS> | |
6877 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6878 | module ModuleA { | |
6879 | signature MyProc1(); | |
6880 | type port MyPortType2 procedure { inout MyProc1 } | |
6881 | type component MyCompType { | |
6882 | port MyPortType2 MyPort2; | |
6883 | } | |
6884 | altstep MyAltstep01() runs on MyCompType {[] Nonexi01.getreply {}} | |
6885 | } | |
6886 | <END_MODULE> | |
6887 | <RESULT IF_PASS COUNT 1> | |
6888 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6889 | <END_RESULT> | |
6890 | <RESULT IF_PASS COUNT 1> | |
6891 | (?is)\berror: | |
6892 | <END_RESULT> | |
6893 | <RESULT IF_PASS POSITIVE> | |
6894 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6895 | <END_RESULT> | |
6896 | <END_TC> | |
6897 | :exmp. | |
6898 | ||
6899 | .*---------------------------------------------------------------------* | |
6900 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->Port->ArrayOrBitRef | |
6901 | .*---------------------------------------------------------------------* | |
6902 | :xmp tab=0. | |
6903 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->Port->ArrayOrBitRef> | |
6904 | <COMPILE> | |
6905 | <VERDICT_LEAF PASS> | |
6906 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6907 | module ModuleA { | |
6908 | signature MyProc1(); | |
6909 | type port MyPortType2 procedure { inout MyProc1 } | |
6910 | type component MyCompType { | |
6911 | port MyPortType2 MyPortArray2[10]; | |
6912 | } | |
6913 | altstep MyAltstep02() runs on MyCompType {[] MyPortArray2[Nonexi02].getreply {}} | |
6914 | } | |
6915 | <END_MODULE> | |
6916 | <RESULT IF_PASS COUNT 1> | |
6917 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6918 | <END_RESULT> | |
6919 | <RESULT IF_PASS COUNT 1> | |
6920 | (?is)\berror: | |
6921 | <END_RESULT> | |
6922 | <RESULT IF_PASS POSITIVE> | |
6923 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6924 | <END_RESULT> | |
6925 | <END_TC> | |
6926 | :exmp. | |
6927 | ||
6928 | .*---------------------------------------------------------------------* | |
6929 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortTriggerOp | |
6930 | .*---------------------------------------------------------------------* | |
6931 | :xmp tab=0. | |
6932 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortTriggerOp> | |
6933 | <COMPILE> | |
6934 | <VERDICT_LEAF PASS> | |
6935 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6936 | module ModuleA { | |
6937 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
6938 | type record MyType1 { | |
6939 | integer field1 | |
6940 | } | |
6941 | type port MyPortType2 procedure { inout MyProc2 } | |
6942 | type component MyCompType { | |
6943 | port MyPortType2 MyPort2; | |
6944 | } | |
6945 | altstep MyAltstep03() runs on MyCompType {[] MyPort2.getreply(MyProc2:{Nonexi03}) {}} | |
6946 | } | |
6947 | <END_MODULE> | |
6948 | <RESULT IF_PASS COUNT 1> | |
6949 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6950 | <END_RESULT> | |
6951 | <RESULT IF_PASS COUNT 1> | |
6952 | (?is)\berror: | |
6953 | <END_RESULT> | |
6954 | <RESULT IF_PASS POSITIVE> | |
6955 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6956 | <END_RESULT> | |
6957 | <END_TC> | |
6958 | :exmp. | |
6959 | ||
6960 | .*---------------------------------------------------------------------* | |
6961 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->ValueClause | |
6962 | .*---------------------------------------------------------------------* | |
6963 | :xmp tab=0. | |
6964 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->ValueClause> | |
6965 | <COMPILE> | |
6966 | <VERDICT_LEAF PASS> | |
6967 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
6968 | module ModuleA { | |
6969 | signature MyProc2(MyType1 MyParam1) return integer exception (integer, float); | |
6970 | type record MyType1 { | |
6971 | integer field1 | |
6972 | } | |
6973 | type port MyPortType2 procedure { inout MyProc2 } | |
6974 | type component MyCompType { | |
6975 | port MyPortType2 MyPort2; | |
6976 | } | |
6977 | altstep MyAltstep04() runs on MyCompType {[] MyPort2.getreply(MyProc2:{?} value Nonexi04) {}} | |
6978 | } | |
6979 | <END_MODULE> | |
6980 | <RESULT IF_PASS COUNT 1> | |
6981 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
6982 | <END_RESULT> | |
6983 | <RESULT IF_PASS COUNT 1> | |
6984 | (?is)\berror: | |
6985 | <END_RESULT> | |
6986 | <RESULT IF_PASS POSITIVE> | |
6987 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
6988 | <END_RESULT> | |
6989 | <END_TC> | |
6990 | :exmp. | |
6991 | ||
6992 | .*---------------------------------------------------------------------* | |
6993 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->FromClause->VariableRef | |
6994 | .*---------------------------------------------------------------------* | |
6995 | :xmp tab=0. | |
6996 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->FromClause->VariableRef> | |
6997 | <COMPILE> | |
6998 | <VERDICT_LEAF PASS> | |
6999 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7000 | module ModuleA { | |
7001 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
7002 | type record MyType1 { | |
7003 | integer field1 | |
7004 | } | |
7005 | type port MyPortType2 procedure { inout MyProc2 } | |
7006 | type component MyCompType { | |
7007 | port MyPortType2 MyPort2; | |
7008 | var MyType1 MyVar1; | |
7009 | } | |
7010 | altstep MyAltstep05() runs on MyCompType {[] MyPort2.getreply from MyVar1.Nonexi05 {}} | |
7011 | } | |
7012 | <END_MODULE> | |
7013 | <RESULT IF_PASS COUNT 1> | |
7014 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi05 | |
7015 | <END_RESULT> | |
7016 | <RESULT IF_PASS COUNT 1> | |
7017 | (?is)\berror: | |
7018 | <END_RESULT> | |
7019 | <RESULT IF_PASS POSITIVE> | |
7020 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7021 | <END_RESULT> | |
7022 | <END_TC> | |
7023 | :exmp. | |
7024 | ||
7025 | .*---------------------------------------------------------------------* | |
7026 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ValueSpec | |
7027 | .*---------------------------------------------------------------------* | |
7028 | :xmp tab=0. | |
7029 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ValueSpec> | |
7030 | <COMPILE> | |
7031 | <VERDICT_LEAF PASS> | |
7032 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7033 | module ModuleA { | |
7034 | signature MyProc2(MyType1 MyParam1) return integer exception (integer, float); | |
7035 | type record MyType1 { | |
7036 | integer field1 | |
7037 | } | |
7038 | type port MyPortType2 procedure { inout MyProc2 } | |
7039 | type component MyCompType { | |
7040 | port MyPortType2 MyPort2; | |
7041 | var MyType1 MyVar1; | |
7042 | } | |
7043 | altstep MyAltstep07() runs on MyCompType {[] MyPort2.getreply(MyProc2:{?}) -> value MyVar1.Nonexi07 {}} | |
7044 | } | |
7045 | <END_MODULE> | |
7046 | <RESULT IF_PASS COUNT 1> | |
7047 | (?im)\berror\b.+?reference.+?non-existent.+?field.+?Nonexi07 | |
7048 | <END_RESULT> | |
7049 | <RESULT IF_PASS COUNT 1> | |
7050 | (?is)\berror: | |
7051 | <END_RESULT> | |
7052 | <RESULT IF_PASS POSITIVE> | |
7053 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7054 | <END_RESULT> | |
7055 | <END_TC> | |
7056 | :exmp. | |
7057 | ||
7058 | .*---------------------------------------------------------------------* | |
7059 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableAssignment->FieldRef | |
7060 | .*---------------------------------------------------------------------* | |
7061 | :xmp tab=0. | |
7062 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableAssignment->FieldRef> | |
7063 | <COMPILE> | |
7064 | <VERDICT_LEAF PASS> | |
7065 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7066 | module ModuleA { | |
7067 | signature MyProc2(inout MyType1 MyParam1) exception (integer, float); | |
7068 | type record MyType1 { | |
7069 | integer field1 | |
7070 | } | |
7071 | type port MyPortType2 procedure { inout MyProc2 } | |
7072 | type component MyCompType { | |
7073 | port MyPortType2 MyPort2; | |
7074 | var MyCompType MyVar2; | |
7075 | } | |
7076 | altstep MyAltstep08() runs on MyCompType {[] MyPort2.getreply(MyProc2:{?}) -> param (MyVar2.Nonexi08 := MyParam1) {}} | |
7077 | } | |
7078 | <END_MODULE> | |
7079 | <RESULT IF_PASS COUNT 1> | |
7080 | (?im)\berror\b.+?invalid.+?field.+?reference.+?Nonexi08 | |
7081 | <END_RESULT> | |
7082 | <RESULT IF_PASS COUNT 1> | |
7083 | (?is)\berror: | |
7084 | <END_RESULT> | |
7085 | <RESULT IF_PASS POSITIVE> | |
7086 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7087 | <END_RESULT> | |
7088 | <END_TC> | |
7089 | :exmp. | |
7090 | ||
7091 | .*---------------------------------------------------------------------* | |
7092 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableAssignment | |
7093 | .*---------------------------------------------------------------------* | |
7094 | :xmp tab=0. | |
7095 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableAssignment> | |
7096 | <COMPILE> | |
7097 | <VERDICT_LEAF PASS> | |
7098 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7099 | module ModuleA { | |
7100 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
7101 | type record MyType1 { | |
7102 | integer field1 | |
7103 | } | |
7104 | type port MyPortType2 procedure { inout MyProc2 } | |
7105 | type component MyCompType { | |
7106 | port MyPortType2 MyPort2; | |
7107 | var MyType1 MyVar1; | |
7108 | } | |
7109 | altstep MyAltstep09() runs on MyCompType { | |
7110 | [] MyPort2.getreply(MyProc2:{?}) | |
7111 | -> param (MyVar1 := Nonexi09) {} | |
7112 | } | |
7113 | } | |
7114 | <END_MODULE> | |
7115 | <RESULT IF_PASS COUNT 1> | |
7116 | (?im)\berror\b.+?signature.+?not.+?have.+?parameter.+?Nonexi09 | |
7117 | <END_RESULT> | |
7118 | <RESULT IF_PASS COUNT 1> | |
7119 | (?is)\berror: | |
7120 | <END_RESULT> | |
7121 | <RESULT IF_PASS POSITIVE> | |
7122 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7123 | <END_RESULT> | |
7124 | <END_TC> | |
7125 | :exmp. | |
7126 | ||
7127 | .*---------------------------------------------------------------------* | |
7128 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableList | |
7129 | .*---------------------------------------------------------------------* | |
7130 | :xmp tab=0. | |
7131 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirectWithParam->ParaSpec->VariableList> | |
7132 | <COMPILE> | |
7133 | <VERDICT_LEAF PASS> | |
7134 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7135 | module ModuleA { | |
7136 | signature MyProc2(inout MyType1 MyParam1) exception (integer, float); | |
7137 | type record MyType1 { | |
7138 | integer field1 | |
7139 | } | |
7140 | type port MyPortType2 procedure { inout MyProc2 } | |
7141 | type component MyCompType { | |
7142 | port MyPortType2 MyPort2; | |
7143 | var MyType1 MyVar1; | |
7144 | } | |
7145 | altstep MyAltstep10() runs on MyCompType {[] MyPort2.getreply(MyProc2:{?}) -> param (Nonexi10) {}} | |
7146 | } | |
7147 | <END_MODULE> | |
7148 | <RESULT IF_PASS COUNT 1> | |
7149 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7150 | <END_RESULT> | |
7151 | <RESULT IF_PASS COUNT 1> | |
7152 | (?is)\berror: | |
7153 | <END_RESULT> | |
7154 | <RESULT IF_PASS POSITIVE> | |
7155 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7156 | <END_RESULT> | |
7157 | <END_TC> | |
7158 | :exmp. | |
7159 | ||
7160 | .*---------------------------------------------------------------------* | |
7161 | :h3.TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirect->SenderSpec | |
7162 | .*---------------------------------------------------------------------* | |
7163 | :xmp tab=0. | |
7164 | <TC - TTCN-3::AltstepDef->GetreplyOp: GuardStatement->AltstepInstance->GuardOp->GetReplyStatement->PortRedirect->SenderSpec> | |
7165 | <COMPILE> | |
7166 | <VERDICT_LEAF PASS> | |
7167 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7168 | module ModuleA { | |
7169 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
7170 | type record MyType1 { | |
7171 | integer field1 | |
7172 | } | |
7173 | type port MyPortType2 procedure { inout MyProc2 } | |
7174 | type component MyCompType { | |
7175 | port MyPortType2 MyPort2; | |
7176 | } | |
7177 | altstep MyAltstep11() runs on MyCompType {[] MyPort2.getreply(MyProc2:{?}) -> sender Nonexi11 {}} | |
7178 | } | |
7179 | <END_MODULE> | |
7180 | <RESULT IF_PASS COUNT 1> | |
7181 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7182 | <END_RESULT> | |
7183 | <RESULT IF_PASS COUNT 1> | |
7184 | (?is)\berror: | |
7185 | <END_RESULT> | |
7186 | <RESULT IF_PASS POSITIVE> | |
7187 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7188 | <END_RESULT> | |
7189 | <END_TC> | |
7190 | :exmp. | |
7191 | ||
7192 | .*---------------------------------------------------------------------* | |
7193 | :h3.TTCN-3::AltstepDef->DoneOp: GuardStatement->AltstepInstance->GuardOp->DoneStatement->Port | |
7194 | .*---------------------------------------------------------------------* | |
7195 | :xmp tab=0. | |
7196 | <TC - TTCN-3::AltstepDef->DoneOp: GuardStatement->AltstepInstance->GuardOp->DoneStatement->Port> | |
7197 | <COMPILE> | |
7198 | <VERDICT_LEAF PASS> | |
7199 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7200 | module ModuleA { | |
7201 | type port MyPortType message { inout universal charstring; } | |
7202 | type component MyCompType { | |
7203 | port MyPortType MyPort; | |
7204 | } | |
7205 | altstep MyAltstep01() runs on MyCompType {[] Nonexi01.done {}} | |
7206 | } | |
7207 | <END_MODULE> | |
7208 | <RESULT IF_PASS COUNT 1> | |
7209 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7210 | <END_RESULT> | |
7211 | <RESULT IF_PASS COUNT 1> | |
7212 | (?is)\berror: | |
7213 | <END_RESULT> | |
7214 | <RESULT IF_PASS POSITIVE> | |
7215 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7216 | <END_RESULT> | |
7217 | <END_TC> | |
7218 | :exmp. | |
7219 | ||
7220 | .*---------------------------------------------------------------------* | |
7221 | :h3.TTCN-3::AltstepDef->DoneOp: GuardStatement->AltstepInstance->GuardOp->DoneStatement->Port->ArrayOrBitRef | |
7222 | .*---------------------------------------------------------------------* | |
7223 | :xmp tab=0. | |
7224 | <TC - TTCN-3::AltstepDef->DoneOp: GuardStatement->AltstepInstance->GuardOp->DoneStatement->Port->ArrayOrBitRef> | |
7225 | <COMPILE> | |
7226 | <VERDICT_LEAF PASS> | |
7227 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7228 | module ModuleA { | |
7229 | type component MyCompType { | |
7230 | var MyCompType MyCompVar[10000]; | |
7231 | } | |
7232 | altstep MyAltstep02() runs on MyCompType {[] MyCompVar[44-Nonexi02].done {}} | |
7233 | } | |
7234 | <END_MODULE> | |
7235 | <RESULT IF_PASS COUNT 1> | |
7236 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7237 | <END_RESULT> | |
7238 | <RESULT IF_PASS COUNT 1> | |
7239 | (?is)\berror: | |
7240 | <END_RESULT> | |
7241 | <RESULT IF_PASS POSITIVE> | |
7242 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7243 | <END_RESULT> | |
7244 | <END_TC> | |
7245 | :exmp. | |
7246 | ||
7247 | .*---------------------------------------------------------------------* | |
7248 | :h3.TTCN-3::AltstepDef->CheckOp: GuardStatement->AltstepInstance->GuardOp->CheckStatement->Port->PortIdentifier | |
7249 | .*---------------------------------------------------------------------* | |
7250 | :xmp tab=0. | |
7251 | <TC - TTCN-3::AltstepDef->CheckOp: GuardStatement->AltstepInstance->GuardOp->CheckStatement->Port->PortIdentifier> | |
7252 | <COMPILE> | |
7253 | <VERDICT_LEAF PASS> | |
7254 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7255 | module ModuleA { | |
7256 | type port MyPortType message { inout boolean; } | |
7257 | type component MyCompType { | |
7258 | port MyPortType MyPort; | |
7259 | } | |
7260 | altstep MyAltstep01() runs on MyCompType {[] Nonexi01.check{}} | |
7261 | } | |
7262 | <END_MODULE> | |
7263 | <RESULT IF_PASS COUNT 1> | |
7264 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7265 | <END_RESULT> | |
7266 | <RESULT IF_PASS COUNT 1> | |
7267 | (?is)\berror: | |
7268 | <END_RESULT> | |
7269 | <RESULT IF_PASS POSITIVE> | |
7270 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7271 | <END_RESULT> | |
7272 | <END_TC> | |
7273 | :exmp. | |
7274 | ||
7275 | .*---------------------------------------------------------------------* | |
7276 | :h3.TTCN-3::AltstepDef->CheckOp: GuardStatement->AltstepInstance->GuardOp->CheckStatement->Port->PortIdentifier->ArrayOrBitRef | |
7277 | .*---------------------------------------------------------------------* | |
7278 | :xmp tab=0. | |
7279 | <TC - TTCN-3::AltstepDef->CheckOp: GuardStatement->AltstepInstance->GuardOp->CheckStatement->Port->PortIdentifier->ArrayOrBitRef> | |
7280 | <COMPILE> | |
7281 | <VERDICT_LEAF PASS> | |
7282 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7283 | module ModuleA { | |
7284 | type port MyPortType message { inout bitstring, octetstring, hexstring; } | |
7285 | type component MyCompType { | |
7286 | port MyPortType MyPortArray[10]; | |
7287 | } | |
7288 | altstep MyAltstep02() runs on MyCompType {[] MyPortArray[Nonexi02 + 2].check{}} | |
7289 | } | |
7290 | <END_MODULE> | |
7291 | <RESULT IF_PASS COUNT 1> | |
7292 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7293 | <END_RESULT> | |
7294 | <RESULT IF_PASS COUNT 1> | |
7295 | (?is)\berror: | |
7296 | <END_RESULT> | |
7297 | <RESULT IF_PASS POSITIVE> | |
7298 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7299 | <END_RESULT> | |
7300 | <END_TC> | |
7301 | :exmp. | |
7302 | ||
7303 | .*---------------------------------------------------------------------* | |
7304 | :h3.TTCN-3::AltstepDef->CheckOp: Receive | |
7305 | .*---------------------------------------------------------------------* | |
7306 | :xmp tab=0. | |
7307 | <TC - TTCN-3::AltstepDef->CheckOp: Receive> | |
7308 | <COMPILE> | |
7309 | <VERDICT_LEAF PASS> | |
7310 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7311 | module ModuleA { | |
7312 | type port MyPortType message { inout float; inout integer; } | |
7313 | type component MyCompType { | |
7314 | port MyPortType MyPort; | |
7315 | } | |
7316 | // NOTE: just one representative example from each operations | |
7317 | // all subcases should already be covered in those operations | |
7318 | altstep MyAltstep03() runs on MyCompType { | |
7319 | [] MyPort.check( | |
7320 | receive(integer:Nonexi01) from Nonexi02() | |
7321 | -> value Nonexi03 | |
7322 | sender Nonexi04 ) {} | |
7323 | } | |
7324 | } | |
7325 | <END_MODULE> | |
7326 | <RESULT IF_PASS COUNT 4> | |
7327 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7328 | <END_RESULT> | |
7329 | <RESULT IF_PASS COUNT 4> | |
7330 | (?is)\berror: | |
7331 | <END_RESULT> | |
7332 | <RESULT IF_PASS POSITIVE> | |
7333 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7334 | <END_RESULT> | |
7335 | <END_TC> | |
7336 | :exmp. | |
7337 | ||
7338 | .*---------------------------------------------------------------------* | |
7339 | :h3.TTCN-3::AltstepDef->CheckOp: Getreply | |
7340 | .*---------------------------------------------------------------------* | |
7341 | :xmp tab=0. | |
7342 | <TC - TTCN-3::AltstepDef->CheckOp: Getreply> | |
7343 | <COMPILE> | |
7344 | <VERDICT_LEAF PASS> | |
7345 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7346 | module ModuleA { | |
7347 | signature MyProc2(inout MyType1 MyParam1) return integer exception (integer, float); | |
7348 | type port MyPortType2 procedure { inout MyProc2 } | |
7349 | type record MyType1 { | |
7350 | integer field1 | |
7351 | } | |
7352 | type component MyCompType { | |
7353 | port MyPortType2 MyPort2; | |
7354 | } | |
7355 | // NOTE: just one representative example from each operations | |
7356 | // all subcases should already be covered in those operations | |
7357 | altstep MyAltstep04() runs on MyCompType { | |
7358 | [] MyPort2.check( | |
7359 | getreply(MyProc2:Nonexi01) from Nonexi02() | |
7360 | -> value Nonexi03 | |
7361 | param (Nonexi04) | |
7362 | sender Nonexi05) {} | |
7363 | } | |
7364 | } | |
7365 | <END_MODULE> | |
7366 | <RESULT IF_PASS COUNT 5> | |
7367 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7368 | <END_RESULT> | |
7369 | <RESULT IF_PASS COUNT 5> | |
7370 | (?is)\berror: | |
7371 | <END_RESULT> | |
7372 | <RESULT IF_PASS POSITIVE> | |
7373 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7374 | <END_RESULT> | |
7375 | <END_TC> | |
7376 | :exmp. | |
7377 | ||
7378 | .*---------------------------------------------------------------------* | |
7379 | :h3.TTCN-3::AltstepDef->CheckOp: Catch | |
7380 | .*---------------------------------------------------------------------* | |
7381 | :xmp tab=0. | |
7382 | <TC - TTCN-3::AltstepDef->CheckOp: Catch> | |
7383 | <COMPILE> | |
7384 | <VERDICT_LEAF PASS> | |
7385 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7386 | module ModuleA { | |
7387 | signature MyProc2(MyType1 MyParam1) exception (integer, float); | |
7388 | type port MyPortType2 procedure { inout MyProc2 } | |
7389 | type record MyType1 { | |
7390 | integer field1 | |
7391 | } | |
7392 | type component MyCompType { | |
7393 | port MyPortType2 MyPort2; | |
7394 | } | |
7395 | // NOTE: just one representative example from each operations | |
7396 | // all subcases should already be covered in those operations | |
7397 | altstep MyAltstep05() runs on MyCompType { | |
7398 | [] MyPort2.check( | |
7399 | catch(MyProc2, integer:Nonexi01) from Nonexi02() | |
7400 | -> value Nonexi03 | |
7401 | sender Nonexi04 ) {} | |
7402 | ||
7403 | } | |
7404 | } | |
7405 | <END_MODULE> | |
7406 | <RESULT IF_PASS COUNT 4> | |
7407 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7408 | <END_RESULT> | |
7409 | <RESULT IF_PASS COUNT 4> | |
7410 | (?is)\berror: | |
7411 | <END_RESULT> | |
7412 | <RESULT IF_PASS POSITIVE> | |
7413 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7414 | <END_RESULT> | |
7415 | <END_TC> | |
7416 | :exmp. | |
7417 | ||
7418 | .*---------------------------------------------------------------------* | |
7419 | :h3.TTCN-3::AltstepDef->CheckOp: Getcall | |
7420 | .*---------------------------------------------------------------------* | |
7421 | :xmp tab=0. | |
7422 | <TC - TTCN-3::AltstepDef->CheckOp: Getcall> | |
7423 | <COMPILE> | |
7424 | <VERDICT_LEAF PASS> | |
7425 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7426 | module ModuleA { | |
7427 | signature MyProc2(inout MyType1 MyParam1) exception (integer, float); | |
7428 | type port MyPortType2 procedure { inout MyProc2 } | |
7429 | type record MyType1 { | |
7430 | integer field1 | |
7431 | } | |
7432 | type component MyCompType { | |
7433 | port MyPortType2 MyPort2; | |
7434 | } | |
7435 | // NOTE: just one representative example from each operations | |
7436 | // all subcases should already be covered in those operations | |
7437 | altstep MyAltstep06() runs on MyCompType { | |
7438 | [] MyPort2.check( | |
7439 | getcall(MyProc2:Nonexi01) from Nonexi02() | |
7440 | -> param (Nonexi03) | |
7441 | sender Nonexi04 ) {} | |
7442 | ||
7443 | }} | |
7444 | <END_MODULE> | |
7445 | <RESULT IF_PASS COUNT 4> | |
7446 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7447 | <END_RESULT> | |
7448 | <RESULT IF_PASS COUNT 4> | |
7449 | (?is)\berror: | |
7450 | <END_RESULT> | |
7451 | <RESULT IF_PASS POSITIVE> | |
7452 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7453 | <END_RESULT> | |
7454 | <END_TC> | |
7455 | :exmp. | |
7456 | ||
7457 | .*---------------------------------------------------------------------* | |
7458 | :h3.TTCN-3::ImportDef->ImportFromSpec->ModuleId->GlobalModuleId->ModuleIdentifier | |
7459 | .*---------------------------------------------------------------------* | |
7460 | :xmp tab=0. | |
7461 | <TC - TTCN-3::ImportDef->ImportFromSpec->ModuleId->GlobalModuleId->ModuleIdentifier> | |
7462 | <COMPILE> | |
7463 | <VERDICT_LEAF PASS> | |
7464 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7465 | module ModuleA { | |
7466 | import from Nonexi01 all; | |
7467 | } | |
7468 | <END_MODULE> | |
7469 | <RESULT IF_PASS COUNT 1> | |
7470 | (?im)\berror\b.+?no.+?module.+?identifier.+?Nonexi | |
7471 | <END_RESULT> | |
7472 | <RESULT IF_PASS COUNT 1> | |
7473 | (?is)\berror: | |
7474 | <END_RESULT> | |
7475 | <RESULT IF_PASS POSITIVE> | |
7476 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7477 | <END_RESULT> | |
7478 | <END_TC> | |
7479 | :exmp. | |
7480 | ||
7481 | .*---------------------------------------------------------------------* | |
7482 | :h3.TTCN-3::ImportDef->ImportFromSpec->ModuleId->GlobalModuleId->ModuleIdentifier->ObjectIdentifierValue | |
7483 | .*---------------------------------------------------------------------* | |
7484 | :xmp tab=0. | |
7485 | <TC - TTCN-3::ImportDef->ImportFromSpec->ModuleId->GlobalModuleId->ModuleIdentifier->ObjectIdentifierValue> | |
7486 | <COMPILE> | |
7487 | <VERDICT_LEAF FAIL> | |
7488 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7489 | module ModuleA { | |
7490 | // others are covered in 'GlobalModuleId' | |
7491 | // TR 627: warning message for objid values | |
7492 | import from ModuleB.objid {0 4 Nonexi02} all; | |
7493 | } | |
7494 | <END_MODULE> | |
7495 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
7496 | module ModuleB { | |
7497 | type integer ModuleBType; | |
7498 | } | |
7499 | <END_MODULE> | |
7500 | <RESULT IF_PASS COUNT 1> | |
7501 | (?im)\berror\b.+?no.+?definition.+?Nonexi.+?in.+?module | |
7502 | <END_RESULT> | |
7503 | <RESULT IF_PASS COUNT 1> | |
7504 | (?is)\berror: | |
7505 | <END_RESULT> | |
7506 | <RESULT IF_PASS POSITIVE> | |
7507 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7508 | <END_RESULT> | |
7509 | <RESULT IF_FAIL NEGATIVE> | |
7510 | (?im)\berror\b | |
7511 | <END_RESULT> | |
7512 | <END_TC> | |
7513 | :exmp. | |
7514 | ||
7515 | .*---------------------------------------------------------------------* | |
7516 | :h3.TTCN-3::ImportDef->LanguageSpec | |
7517 | .*---------------------------------------------------------------------* | |
7518 | :xmp tab=0. | |
7519 | <TC - TTCN-3::ImportDef->LanguageSpec> | |
7520 | <COMPILE> | |
7521 | <VERDICT_LEAF PASS> | |
7522 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7523 | module ModuleA { | |
7524 | // TR 626: warning message if 'LanguageSpec' is found | |
7525 | // NOTE: improvement idea, TC should be changed if accepted. | |
7526 | import from ModuleC language "Nonexi03" all; | |
7527 | } | |
7528 | <END_MODULE> | |
7529 | <MODULE TTCN ModuleC ModuleC.ttcn> | |
7530 | module ModuleC { | |
7531 | type integer ModuleCType; | |
7532 | } | |
7533 | <END_MODULE> | |
7534 | <RESULT IF_PASS NEGATIVE> | |
7535 | (?im)\berror\b | |
7536 | <END_RESULT> | |
7537 | <END_TC> | |
7538 | :exmp. | |
7539 | ||
7540 | .*---------------------------------------------------------------------* | |
7541 | :h3.TTCN-3::ImportDef->AllWithExcepts | |
7542 | .*---------------------------------------------------------------------* | |
7543 | :xmp tab=0. | |
7544 | <TC - TTCN-3::ImportDef->AllWithExcepts> | |
7545 | <COMPILE> | |
7546 | <VERDICT_LEAF FAIL> | |
7547 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7548 | module ModuleA { | |
7549 | import from ModuleD all except { type Nonexi04 }; | |
7550 | } | |
7551 | <END_MODULE> | |
7552 | <MODULE TTCN ModuleD ModuleD.ttcn> | |
7553 | module ModuleD { | |
7554 | type integer ModuleDType; | |
7555 | } | |
7556 | <END_MODULE> | |
7557 | <RESULT IF_PASS COUNT 1> | |
7558 | (?im)\berror\b.+?no.+?definition.+?Nonexi.+?in.+?module | |
7559 | <END_RESULT> | |
7560 | <RESULT IF_PASS COUNT 1> | |
7561 | (?is)\berror: | |
7562 | <END_RESULT> | |
7563 | <RESULT IF_PASS POSITIVE> | |
7564 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7565 | <END_RESULT> | |
7566 | <RESULT IF_FAIL NEGATIVE> | |
7567 | (?im)\berror\b | |
7568 | <END_RESULT> | |
7569 | <END_TC> | |
7570 | :exmp. | |
7571 | ||
7572 | .*---------------------------------------------------------------------* | |
7573 | :h3.TTCN-3::ImportDef->ImportElement | |
7574 | .*---------------------------------------------------------------------* | |
7575 | :xmp tab=0. | |
7576 | <TC - TTCN-3::ImportDef->ImportElement> | |
7577 | <COMPILE> | |
7578 | <VERDICT_LEAF FAIL> | |
7579 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7580 | module ModuleA { | |
7581 | import from ModuleE { type Nonexi05 }; | |
7582 | } | |
7583 | <END_MODULE> | |
7584 | <MODULE TTCN ModuleE ModuleE.ttcn> | |
7585 | module ModuleE { | |
7586 | type integer ModuleEType; | |
7587 | } | |
7588 | <END_MODULE> | |
7589 | <RESULT IF_PASS COUNT 1> | |
7590 | (?im)\berror\b.+?no.+?definition.+?Nonexi.+?in.+?module | |
7591 | <END_RESULT> | |
7592 | <RESULT IF_PASS COUNT 1> | |
7593 | (?is)\berror: | |
7594 | <END_RESULT> | |
7595 | <RESULT IF_PASS POSITIVE> | |
7596 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7597 | <END_RESULT> | |
7598 | <RESULT IF_FAIL NEGATIVE> | |
7599 | (?im)\berror\b | |
7600 | <END_RESULT> | |
7601 | <END_TC> | |
7602 | :exmp. | |
7603 | ||
7604 | .*---------------------------------------------------------------------* | |
7605 | :h3.TTCN-3::ImportDef->ImportElement->AllWithExcepts | |
7606 | .*---------------------------------------------------------------------* | |
7607 | :xmp tab=0. | |
7608 | <TC - TTCN-3::ImportDef->ImportElement->AllWithExcepts> | |
7609 | <COMPILE> | |
7610 | <VERDICT_LEAF FAIL> | |
7611 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7612 | module ModuleA { | |
7613 | import from ModuleF { type all except Nonexi06 }; | |
7614 | } | |
7615 | <END_MODULE> | |
7616 | <MODULE TTCN ModuleF ModuleF.ttcn> | |
7617 | module ModuleF { | |
7618 | type integer ModuleFType; | |
7619 | } | |
7620 | <END_MODULE> | |
7621 | <RESULT IF_PASS COUNT 1> | |
7622 | (?im)\berror\b.+?no.+?definition.+?Nonexi.+?in.+?module | |
7623 | <END_RESULT> | |
7624 | <RESULT IF_PASS COUNT 1> | |
7625 | (?is)\berror: | |
7626 | <END_RESULT> | |
7627 | <RESULT IF_PASS POSITIVE> | |
7628 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7629 | <END_RESULT> | |
7630 | <RESULT IF_FAIL NEGATIVE> | |
7631 | (?im)\berror\b | |
7632 | <END_RESULT> | |
7633 | <END_TC> | |
7634 | :exmp. | |
7635 | ||
7636 | .*---------------------------------------------------------------------* | |
7637 | :h3.TTCN-3::ImportDef: nonexistent element in an existing module | |
7638 | .*---------------------------------------------------------------------* | |
7639 | :xmp tab=0. | |
7640 | <TC - TTCN-3::ImportDef: nonexistent element in an existing module> | |
7641 | <COMPILE> | |
7642 | <VERDICT_LEAF PASS> | |
7643 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7644 | module ModuleA { | |
7645 | import from ModuleB all; | |
7646 | const ModuleB.Nonexi07 MyConst := 666; | |
7647 | } | |
7648 | <END_MODULE> | |
7649 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
7650 | module ModuleB { | |
7651 | type integer ModuleBType; | |
7652 | } | |
7653 | <END_MODULE> | |
7654 | <RESULT IF_PASS COUNT 1> | |
7655 | (?im)\berror\b.+?no.+?definition.+?Nonexi.+?visible.+?module | |
7656 | <END_RESULT> | |
7657 | <RESULT IF_PASS COUNT 1> | |
7658 | (?is)\berror: | |
7659 | <END_RESULT> | |
7660 | <RESULT IF_PASS POSITIVE> | |
7661 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7662 | <END_RESULT> | |
7663 | <END_TC> | |
7664 | :exmp. | |
7665 | ||
7666 | .*---------------------------------------------------------------------* | |
7667 | :h3.TTCN-3::ExtFunctionDef->FunctionFormalParList | |
7668 | .*---------------------------------------------------------------------* | |
7669 | :xmp tab=0. | |
7670 | <TC - TTCN-3::ExtFunctionDef->FunctionFormalParList> | |
7671 | <COMPILE> | |
7672 | <VERDICT_LEAF PASS> | |
7673 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7674 | module ModuleA { | |
7675 | // others are covered in 'FunctionFormalParList' | |
7676 | external function MyFunc1 ( Nonexi01 Par1 ); | |
7677 | } | |
7678 | <END_MODULE> | |
7679 | <RESULT IF_PASS COUNT 1> | |
7680 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7681 | <END_RESULT> | |
7682 | <RESULT IF_PASS COUNT 1> | |
7683 | (?is)\berror: | |
7684 | <END_RESULT> | |
7685 | <RESULT IF_PASS POSITIVE> | |
7686 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7687 | <END_RESULT> | |
7688 | <END_TC> | |
7689 | :exmp. | |
7690 | ||
7691 | .*---------------------------------------------------------------------* | |
7692 | :h3.TTCN-3::ExtFunctionDef->Type | |
7693 | .*---------------------------------------------------------------------* | |
7694 | :xmp tab=0. | |
7695 | <TC - TTCN-3::ExtFunctionDef->Type> | |
7696 | <COMPILE> | |
7697 | <VERDICT_LEAF PASS> | |
7698 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7699 | module ModuleA.objid {0 4 0} { | |
7700 | // others are covered in 'Type' | |
7701 | external function MyFunc2 ( ) return ModuleA.objid {0 4 0}.Nonexi02; | |
7702 | } | |
7703 | <END_MODULE> | |
7704 | <RESULT IF_PASS COUNT 1> | |
7705 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7706 | <END_RESULT> | |
7707 | <RESULT IF_PASS COUNT 1> | |
7708 | (?is)\berror: | |
7709 | <END_RESULT> | |
7710 | <RESULT IF_PASS POSITIVE> | |
7711 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7712 | <END_RESULT> | |
7713 | <END_TC> | |
7714 | :exmp. | |
7715 | ||
7716 | .*---------------------------------------------------------------------* | |
7717 | :h3.TTCN-3::ExtConstDef | |
7718 | .*---------------------------------------------------------------------* | |
7719 | :xmp tab=0. | |
7720 | <TC - TTCN-3::ExtConstDef> | |
7721 | <COMPILE> | |
7722 | <VERDICT_LEAF PASS> | |
7723 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7724 | module ModuleA.objid {0 4 0} { | |
7725 | // others are covered in 'Type' | |
7726 | external const ModuleA.objid {0 4 0}.Nonexi02 MyConst2; | |
7727 | } | |
7728 | <END_MODULE> | |
7729 | <RESULT IF_PASS COUNT 1> | |
7730 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7731 | <END_RESULT> | |
7732 | <RESULT IF_PASS COUNT 1> | |
7733 | (?is)\berror: | |
7734 | <END_RESULT> | |
7735 | <RESULT IF_PASS POSITIVE> | |
7736 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7737 | <END_RESULT> | |
7738 | <END_TC> | |
7739 | :exmp. | |
7740 | ||
7741 | .*---------------------------------------------------------------------* | |
7742 | :h3.TTCN-3::FormalParList: FunctionFormalParList | |
7743 | .*---------------------------------------------------------------------* | |
7744 | :xmp tab=0. | |
7745 | <TC - TTCN-3::FormalParList: FunctionFormalParList> | |
7746 | <COMPILE> | |
7747 | <VERDICT_LEAF PASS> | |
7748 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7749 | module ModuleA { | |
7750 | function MyFunc1 (Nonexi01 Par1){}; | |
7751 | ||
7752 | } | |
7753 | <END_MODULE> | |
7754 | <RESULT IF_PASS COUNT 1> | |
7755 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7756 | <END_RESULT> | |
7757 | <RESULT IF_PASS COUNT 1> | |
7758 | (?is)\berror: | |
7759 | <END_RESULT> | |
7760 | <RESULT IF_PASS POSITIVE> | |
7761 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7762 | <END_RESULT> | |
7763 | <END_TC> | |
7764 | :exmp. | |
7765 | ||
7766 | .*---------------------------------------------------------------------* | |
7767 | :h3.TTCN-3::FormalParList: TemplateFormalParList | |
7768 | .*---------------------------------------------------------------------* | |
7769 | :xmp tab=0. | |
7770 | <TC - TTCN-3::FormalParList: TemplateFormalParList> | |
7771 | <COMPILE> | |
7772 | <VERDICT_LEAF PASS> | |
7773 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7774 | module ModuleA { | |
7775 | template integer MyTemplate1 (Nonexi05 Par1) := 10; | |
7776 | ||
7777 | } | |
7778 | <END_MODULE> | |
7779 | <RESULT IF_PASS COUNT 1> | |
7780 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7781 | <END_RESULT> | |
7782 | <RESULT IF_PASS COUNT 1> | |
7783 | (?is)\berror: | |
7784 | <END_RESULT> | |
7785 | <RESULT IF_PASS POSITIVE> | |
7786 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7787 | <END_RESULT> | |
7788 | <END_TC> | |
7789 | :exmp. | |
7790 | ||
7791 | .*---------------------------------------------------------------------* | |
7792 | :h3.TTCN-3::FormalParList: SignatureFormalParList | |
7793 | .*---------------------------------------------------------------------* | |
7794 | :xmp tab=0. | |
7795 | <TC - TTCN-3::FormalParList: SignatureFormalParList> | |
7796 | <COMPILE> | |
7797 | <VERDICT_LEAF PASS> | |
7798 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7799 | module ModuleA { | |
7800 | signature MySignature1 (Nonexi09 Par1); | |
7801 | ||
7802 | } | |
7803 | <END_MODULE> | |
7804 | <RESULT IF_PASS COUNT 1> | |
7805 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7806 | <END_RESULT> | |
7807 | <RESULT IF_PASS COUNT 1> | |
7808 | (?is)\berror: | |
7809 | <END_RESULT> | |
7810 | <RESULT IF_PASS POSITIVE> | |
7811 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7812 | <END_RESULT> | |
7813 | <END_TC> | |
7814 | :exmp. | |
7815 | ||
7816 | .*---------------------------------------------------------------------* | |
7817 | :h3.TTCN-3::FormalParList: TestcaseFormalParList | |
7818 | .*---------------------------------------------------------------------* | |
7819 | :xmp tab=0. | |
7820 | <TC - TTCN-3::FormalParList: TestcaseFormalParList> | |
7821 | <COMPILE> | |
7822 | <VERDICT_LEAF PASS> | |
7823 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7824 | module ModuleA { | |
7825 | type port MyPortType message{ | |
7826 | inout integer; | |
7827 | } | |
7828 | type component MyComp { | |
7829 | port MyPortType MyPort | |
7830 | } | |
7831 | testcase MyTC1 (Nonexi11 Par1) runs on MyComp {}; | |
7832 | } | |
7833 | <END_MODULE> | |
7834 | <RESULT IF_PASS COUNT 1> | |
7835 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7836 | <END_RESULT> | |
7837 | <RESULT IF_PASS COUNT 1> | |
7838 | (?is)\berror: | |
7839 | <END_RESULT> | |
7840 | <RESULT IF_PASS POSITIVE> | |
7841 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7842 | <END_RESULT> | |
7843 | <END_TC> | |
7844 | :exmp. | |
7845 | ||
7846 | .*---------------------------------------------------------------------* | |
7847 | :h3.TTCN-3::FormalParList: AltstepFormalParList | |
7848 | .*---------------------------------------------------------------------* | |
7849 | :xmp tab=0. | |
7850 | <TC - TTCN-3::FormalParList: AltstepFormalParList> | |
7851 | <COMPILE> | |
7852 | <VERDICT_LEAF PASS> | |
7853 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7854 | module ModuleA { | |
7855 | type port MyPortType message{ | |
7856 | inout integer; | |
7857 | } | |
7858 | type component MyComp { | |
7859 | port MyPortType MyPort | |
7860 | } | |
7861 | altstep MyAltstep1 (Nonexi15 Par1) { [] any port.receive {} }; | |
7862 | } | |
7863 | <END_MODULE> | |
7864 | <RESULT IF_PASS COUNT 1> | |
7865 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7866 | <END_RESULT> | |
7867 | <RESULT IF_PASS COUNT 1> | |
7868 | (?is)\berror: | |
7869 | <END_RESULT> | |
7870 | <RESULT IF_PASS POSITIVE> | |
7871 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7872 | <END_RESULT> | |
7873 | <END_TC> | |
7874 | :exmp. | |
7875 | ||
7876 | .*---------------------------------------------------------------------* | |
7877 | :h3.TTCN-3::TemplateInstance: InLineTemplate->Type | Signature | |
7878 | .*---------------------------------------------------------------------* | |
7879 | :xmp tab=0. | |
7880 | <TC - TTCN-3::TemplateInstance: InLineTemplate->Type | Signature> | |
7881 | <COMPILE> | |
7882 | <VERDICT_LEAF PASS> | |
7883 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7884 | module ModuleA { | |
7885 | function MyFunc1(template integer Par1) {}; | |
7886 | template integer MyTemplate1(integer Par1) := Par1; | |
7887 | control { | |
7888 | MyFunc1(Nonexi01:10); | |
7889 | } | |
7890 | } | |
7891 | <END_MODULE> | |
7892 | <RESULT IF_PASS COUNT 1> | |
7893 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7894 | <END_RESULT> | |
7895 | <RESULT IF_PASS COUNT 1> | |
7896 | (?is)\berror: | |
7897 | <END_RESULT> | |
7898 | <RESULT IF_PASS POSITIVE> | |
7899 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7900 | <END_RESULT> | |
7901 | <END_TC> | |
7902 | :exmp. | |
7903 | ||
7904 | .*---------------------------------------------------------------------* | |
7905 | :h3.TTCN-3::TemplateInstance: DerivedRefWithParList->TemplateRefWithParList->TemplateIdentifier | |
7906 | .*---------------------------------------------------------------------* | |
7907 | :xmp tab=0. | |
7908 | <TC - TTCN-3::TemplateInstance: DerivedRefWithParList->TemplateRefWithParList->TemplateIdentifier> | |
7909 | <COMPILE> | |
7910 | <VERDICT_LEAF PASS> | |
7911 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7912 | module ModuleA { | |
7913 | function MyFunc1(template integer Par1) {}; | |
7914 | template integer MyTemplate1(integer Par1) := Par1; | |
7915 | control { | |
7916 | MyFunc1(modifies Nonexi04 := 10); | |
7917 | } | |
7918 | } | |
7919 | <END_MODULE> | |
7920 | <RESULT IF_PASS COUNT 1> | |
7921 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7922 | <END_RESULT> | |
7923 | <RESULT IF_PASS COUNT 1> | |
7924 | (?is)\berror: | |
7925 | <END_RESULT> | |
7926 | <RESULT IF_PASS POSITIVE> | |
7927 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7928 | <END_RESULT> | |
7929 | <END_TC> | |
7930 | :exmp. | |
7931 | ||
7932 | .*---------------------------------------------------------------------* | |
7933 | :h3.TTCN-3::TemplateInstance: TemplateActualPar | |
7934 | .*---------------------------------------------------------------------* | |
7935 | :xmp tab=0. | |
7936 | <TC - TTCN-3::TemplateInstance: TemplateActualPar> | |
7937 | <COMPILE> | |
7938 | <VERDICT_LEAF PASS> | |
7939 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7940 | module ModuleA { | |
7941 | function MyFunc1(template integer Par1) {}; | |
7942 | template integer MyTemplate1(integer Par1) := Par1; | |
7943 | control { | |
7944 | // TR 680: parameterized inline modified template | |
7945 | MyFunc1(modifies MyTemplate1(Nonexi) := 10); | |
7946 | } | |
7947 | } | |
7948 | <END_MODULE> | |
7949 | <RESULT IF_PASS COUNT 1> | |
7950 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7951 | <END_RESULT> | |
7952 | <RESULT IF_PASS COUNT 1> | |
7953 | (?is)\berror: | |
7954 | <END_RESULT> | |
7955 | <RESULT IF_PASS POSITIVE> | |
7956 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7957 | <END_RESULT> | |
7958 | <END_TC> | |
7959 | :exmp. | |
7960 | ||
7961 | .*---------------------------------------------------------------------* | |
7962 | :h3.TTCN-3::TemplateInstance: embedded TemplateInstance | |
7963 | .*---------------------------------------------------------------------* | |
7964 | :xmp tab=0. | |
7965 | <TC - TTCN-3::TemplateInstance: embedded TemplateInstance> | |
7966 | <COMPILE> | |
7967 | <VERDICT_LEAF PASS> | |
7968 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7969 | module ModuleA { | |
7970 | function MyFunc1(template integer Par1) {}; | |
7971 | template integer MyTemplate1(template integer Par1) := Par1; | |
7972 | control { | |
7973 | MyFunc1(modifies MyTemplate1(modifies MyTemplate1(Nonexi08) := 10 ) := 10); | |
7974 | } | |
7975 | } | |
7976 | <END_MODULE> | |
7977 | <RESULT IF_PASS COUNT 1> | |
7978 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
7979 | <END_RESULT> | |
7980 | <RESULT IF_PASS COUNT 1> | |
7981 | (?is)\berror: | |
7982 | <END_RESULT> | |
7983 | <RESULT IF_PASS POSITIVE> | |
7984 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
7985 | <END_RESULT> | |
7986 | <END_TC> | |
7987 | :exmp. | |
7988 | ||
7989 | .*---------------------------------------------------------------------* | |
7990 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance | |
7991 | .*---------------------------------------------------------------------* | |
7992 | :xmp tab=0. | |
7993 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance> | |
7994 | <COMPILE> | |
7995 | <VERDICT_LEAF PASS> | |
7996 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
7997 | module ModuleA { | |
7998 | control { | |
7999 | var Nonexi01 MyVar1 := 10, MyVar2; | |
8000 | } | |
8001 | } | |
8002 | <END_MODULE> | |
8003 | <RESULT IF_PASS COUNT 1> | |
8004 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8005 | <END_RESULT> | |
8006 | <RESULT IF_PASS COUNT 1> | |
8007 | (?is)\berror: | |
8008 | <END_RESULT> | |
8009 | <RESULT IF_PASS POSITIVE> | |
8010 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8011 | <END_RESULT> | |
8012 | <END_TC> | |
8013 | :exmp. | |
8014 | ||
8015 | .*---------------------------------------------------------------------* | |
8016 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef | |
8017 | .*---------------------------------------------------------------------* | |
8018 | :xmp tab=0. | |
8019 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef> | |
8020 | <COMPILE> | |
8021 | <VERDICT_LEAF PASS> | |
8022 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8023 | module ModuleA { | |
8024 | control { | |
8025 | var integer MyVar3[Nonexi02]; | |
8026 | } | |
8027 | } | |
8028 | <END_MODULE> | |
8029 | <RESULT IF_PASS COUNT 1> | |
8030 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8031 | <END_RESULT> | |
8032 | <RESULT IF_PASS COUNT 1> | |
8033 | (?is)\berror: | |
8034 | <END_RESULT> | |
8035 | <RESULT IF_PASS POSITIVE> | |
8036 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8037 | <END_RESULT> | |
8038 | <RESULT IF_FAIL COUNT 1> | |
8039 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8040 | <END_RESULT> | |
8041 | <RESULT IF_FAIL COUNT 1> | |
8042 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
8043 | <END_RESULT> | |
8044 | <RESULT IF_FAIL COUNT 2> | |
8045 | (?is)\berror: | |
8046 | <END_RESULT> | |
8047 | <RESULT IF_FAIL POSITIVE> | |
8048 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8049 | <END_RESULT> | |
8050 | <END_TC> | |
8051 | :exmp. | |
8052 | ||
8053 | .*---------------------------------------------------------------------* | |
8054 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Range (upper bound) | |
8055 | .*---------------------------------------------------------------------* | |
8056 | :xmp tab=0. | |
8057 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Range (upper bound)> | |
8058 | <COMPILE> | |
8059 | <VERDICT_LEAF PASS> | |
8060 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8061 | module ModuleA { | |
8062 | control { | |
8063 | var integer MyVar3[999..Nonexi02]; | |
8064 | } | |
8065 | } | |
8066 | <END_MODULE> | |
8067 | <RESULT IF_PASS COUNT 1> | |
8068 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8069 | <END_RESULT> | |
8070 | <RESULT IF_PASS COUNT 1> | |
8071 | (?is)\berror: | |
8072 | <END_RESULT> | |
8073 | <RESULT IF_PASS POSITIVE> | |
8074 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8075 | <END_RESULT> | |
8076 | <RESULT IF_FAIL COUNT 1> | |
8077 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8078 | <END_RESULT> | |
8079 | <RESULT IF_FAIL COUNT 1> | |
8080 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
8081 | <END_RESULT> | |
8082 | <RESULT IF_FAIL COUNT 2> | |
8083 | (?is)\berror: | |
8084 | <END_RESULT> | |
8085 | <RESULT IF_FAIL POSITIVE> | |
8086 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8087 | <END_RESULT> | |
8088 | <END_TC> | |
8089 | :exmp. | |
8090 | ||
8091 | .*---------------------------------------------------------------------* | |
8092 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Range (lower bound) | |
8093 | .*---------------------------------------------------------------------* | |
8094 | :xmp tab=0. | |
8095 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Range (lower bound)> | |
8096 | <COMPILE> | |
8097 | <VERDICT_LEAF PASS> | |
8098 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8099 | module ModuleA { | |
8100 | control { | |
8101 | var integer MyVar3[Nonexi02..999]; | |
8102 | } | |
8103 | } | |
8104 | <END_MODULE> | |
8105 | <RESULT IF_PASS COUNT 1> | |
8106 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8107 | <END_RESULT> | |
8108 | <RESULT IF_PASS COUNT 1> | |
8109 | (?is)\berror: | |
8110 | <END_RESULT> | |
8111 | <RESULT IF_PASS POSITIVE> | |
8112 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8113 | <END_RESULT> | |
8114 | <RESULT IF_FAIL COUNT 1> | |
8115 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8116 | <END_RESULT> | |
8117 | <RESULT IF_FAIL COUNT 1> | |
8118 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
8119 | <END_RESULT> | |
8120 | <RESULT IF_FAIL COUNT 2> | |
8121 | (?is)\berror: | |
8122 | <END_RESULT> | |
8123 | <RESULT IF_FAIL POSITIVE> | |
8124 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8125 | <END_RESULT> | |
8126 | <END_TC> | |
8127 | :exmp. | |
8128 | ||
8129 | .*---------------------------------------------------------------------* | |
8130 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Multidimensional | |
8131 | .*---------------------------------------------------------------------* | |
8132 | :xmp tab=0. | |
8133 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->ArrayDef->Multidimensional> | |
8134 | <COMPILE> | |
8135 | <VERDICT_LEAF PASS> | |
8136 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8137 | module ModuleA { | |
8138 | control { | |
8139 | var integer MyVar5[1+10][113+333][2+Nonexi05]; | |
8140 | } | |
8141 | } | |
8142 | <END_MODULE> | |
8143 | <RESULT IF_PASS COUNT 1> | |
8144 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8145 | <END_RESULT> | |
8146 | <RESULT IF_PASS COUNT 1> | |
8147 | (?is)\berror: | |
8148 | <END_RESULT> | |
8149 | <RESULT IF_PASS POSITIVE> | |
8150 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8151 | <END_RESULT> | |
8152 | <RESULT IF_FAIL COUNT 1> | |
8153 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8154 | <END_RESULT> | |
8155 | <RESULT IF_FAIL COUNT 1> | |
8156 | (?im)\berror\b.+?must.+?evaluate.+?integer | |
8157 | <END_RESULT> | |
8158 | <RESULT IF_FAIL COUNT 2> | |
8159 | (?is)\berror: | |
8160 | <END_RESULT> | |
8161 | <RESULT IF_FAIL POSITIVE> | |
8162 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8163 | <END_RESULT> | |
8164 | <END_TC> | |
8165 | :exmp. | |
8166 | ||
8167 | .*---------------------------------------------------------------------* | |
8168 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->RVALUE | |
8169 | .*---------------------------------------------------------------------* | |
8170 | :xmp tab=0. | |
8171 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->VarInstance->RVALUE> | |
8172 | <COMPILE> | |
8173 | <VERDICT_LEAF PASS> | |
8174 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8175 | module ModuleA { | |
8176 | control { | |
8177 | var integer MyVar6 := 11-Nonexi06; | |
8178 | } | |
8179 | } | |
8180 | <END_MODULE> | |
8181 | <RESULT IF_PASS COUNT 1> | |
8182 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8183 | <END_RESULT> | |
8184 | <RESULT IF_PASS COUNT 1> | |
8185 | (?is)\berror: | |
8186 | <END_RESULT> | |
8187 | <RESULT IF_PASS POSITIVE> | |
8188 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8189 | <END_RESULT> | |
8190 | <END_TC> | |
8191 | :exmp. | |
8192 | ||
8193 | .*---------------------------------------------------------------------* | |
8194 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef | |
8195 | .*---------------------------------------------------------------------* | |
8196 | :xmp tab=0. | |
8197 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef> | |
8198 | <COMPILE> | |
8199 | <VERDICT_LEAF PASS> | |
8200 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8201 | module ModuleA { | |
8202 | control { | |
8203 | timer MyTimer1[Nonexi07]; | |
8204 | } | |
8205 | } | |
8206 | <END_MODULE> | |
8207 | <RESULT IF_PASS COUNT 1> | |
8208 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8209 | <END_RESULT> | |
8210 | <RESULT IF_PASS COUNT 1> | |
8211 | (?is)\berror: | |
8212 | <END_RESULT> | |
8213 | <RESULT IF_PASS POSITIVE> | |
8214 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8215 | <END_RESULT> | |
8216 | <END_TC> | |
8217 | :exmp. | |
8218 | ||
8219 | .*---------------------------------------------------------------------* | |
8220 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Range (upper bound) | |
8221 | .*---------------------------------------------------------------------* | |
8222 | :xmp tab=0. | |
8223 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Range (upper bound)> | |
8224 | <COMPILE> | |
8225 | <VERDICT_LEAF PASS> | |
8226 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8227 | module ModuleA { | |
8228 | control { | |
8229 | timer MyTimer1[666..Nonexi07]; | |
8230 | } | |
8231 | } | |
8232 | <END_MODULE> | |
8233 | <RESULT IF_PASS COUNT 1> | |
8234 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8235 | <END_RESULT> | |
8236 | <RESULT IF_PASS COUNT 1> | |
8237 | (?is)\berror: | |
8238 | <END_RESULT> | |
8239 | <RESULT IF_PASS POSITIVE> | |
8240 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8241 | <END_RESULT> | |
8242 | <END_TC> | |
8243 | :exmp. | |
8244 | ||
8245 | .*---------------------------------------------------------------------* | |
8246 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Range (lower bound) | |
8247 | .*---------------------------------------------------------------------* | |
8248 | :xmp tab=0. | |
8249 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Range (lower bound)> | |
8250 | <COMPILE> | |
8251 | <VERDICT_LEAF PASS> | |
8252 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8253 | module ModuleA { | |
8254 | control { | |
8255 | timer MyTimer1[Nonexi07..666]; | |
8256 | } | |
8257 | } | |
8258 | <END_MODULE> | |
8259 | <RESULT IF_PASS COUNT 1> | |
8260 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8261 | <END_RESULT> | |
8262 | <RESULT IF_PASS COUNT 1> | |
8263 | (?is)\berror: | |
8264 | <END_RESULT> | |
8265 | <RESULT IF_PASS POSITIVE> | |
8266 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8267 | <END_RESULT> | |
8268 | <END_TC> | |
8269 | :exmp. | |
8270 | ||
8271 | .*---------------------------------------------------------------------* | |
8272 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Multidimensional | |
8273 | .*---------------------------------------------------------------------* | |
8274 | :xmp tab=0. | |
8275 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->ArrayDef->Multidimensional> | |
8276 | <COMPILE> | |
8277 | <VERDICT_LEAF PASS> | |
8278 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8279 | module ModuleA { | |
8280 | control { | |
8281 | timer MyTimer1[1+10][113+333][Nonexi10]; | |
8282 | } | |
8283 | } | |
8284 | <END_MODULE> | |
8285 | <RESULT IF_PASS COUNT 1> | |
8286 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8287 | <END_RESULT> | |
8288 | <RESULT IF_PASS COUNT 1> | |
8289 | (?is)\berror: | |
8290 | <END_RESULT> | |
8291 | <RESULT IF_PASS POSITIVE> | |
8292 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8293 | <END_RESULT> | |
8294 | <END_TC> | |
8295 | :exmp. | |
8296 | ||
8297 | .*---------------------------------------------------------------------* | |
8298 | :h3.TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->RVALUE | |
8299 | .*---------------------------------------------------------------------* | |
8300 | :xmp tab=0. | |
8301 | <TC - TTCN-3::ModuleControlPart->FunctionLocalInst->TimerInstance->RVALUE> | |
8302 | <COMPILE> | |
8303 | <VERDICT_LEAF PASS> | |
8304 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8305 | module ModuleA { | |
8306 | control { | |
8307 | timer MyTimer4 := Nonexi11; | |
8308 | } | |
8309 | } | |
8310 | <END_MODULE> | |
8311 | <RESULT IF_PASS COUNT 1> | |
8312 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8313 | <END_RESULT> | |
8314 | <RESULT IF_PASS COUNT 1> | |
8315 | (?is)\berror: | |
8316 | <END_RESULT> | |
8317 | <RESULT IF_PASS POSITIVE> | |
8318 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8319 | <END_RESULT> | |
8320 | <END_TC> | |
8321 | :exmp. | |
8322 | ||
8323 | .*---------------------------------------------------------------------* | |
8324 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->TimerRef | |
8325 | .*---------------------------------------------------------------------* | |
8326 | :xmp tab=0. | |
8327 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->TimerRef> | |
8328 | <COMPILE> | |
8329 | <VERDICT_LEAF PASS> | |
8330 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8331 | module ModuleA { | |
8332 | control { | |
8333 | Nonexi01.start(1.0); | |
8334 | } | |
8335 | } | |
8336 | <END_MODULE> | |
8337 | <RESULT IF_PASS COUNT 1> | |
8338 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8339 | <END_RESULT> | |
8340 | <RESULT IF_PASS COUNT 1> | |
8341 | (?is)\berror: | |
8342 | <END_RESULT> | |
8343 | <RESULT IF_PASS POSITIVE> | |
8344 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8345 | <END_RESULT> | |
8346 | <END_TC> | |
8347 | :exmp. | |
8348 | ||
8349 | .*---------------------------------------------------------------------* | |
8350 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->ArrayOrBitRef | |
8351 | .*---------------------------------------------------------------------* | |
8352 | :xmp tab=0. | |
8353 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->ArrayOrBitRef> | |
8354 | <COMPILE> | |
8355 | <VERDICT_LEAF PASS> | |
8356 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8357 | module ModuleA { | |
8358 | control { | |
8359 | timer MyTimer2[10]; | |
8360 | MyTimer2[Nonexi02 + 1].start(1.0); | |
8361 | } | |
8362 | } | |
8363 | <END_MODULE> | |
8364 | <RESULT IF_PASS COUNT 1> | |
8365 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8366 | <END_RESULT> | |
8367 | <RESULT IF_PASS COUNT 1> | |
8368 | (?is)\berror: | |
8369 | <END_RESULT> | |
8370 | <RESULT IF_PASS POSITIVE> | |
8371 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8372 | <END_RESULT> | |
8373 | <END_TC> | |
8374 | :exmp. | |
8375 | ||
8376 | .*---------------------------------------------------------------------* | |
8377 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->ArrayOrBitRef->Multidimensional | |
8378 | .*---------------------------------------------------------------------* | |
8379 | :xmp tab=0. | |
8380 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->ArrayOrBitRef->Multidimensional> | |
8381 | <COMPILE> | |
8382 | <VERDICT_LEAF PASS> | |
8383 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8384 | module ModuleA { | |
8385 | control { | |
8386 | // NOTE: pending CR for multidimensional timers, not yet supported | |
8387 | timer MyTimer2[10][10][10000]; | |
8388 | MyTimer2[2][2][Nonexi02 + 1].start(1.0); | |
8389 | } | |
8390 | } | |
8391 | <END_MODULE> | |
8392 | <RESULT IF_PASS COUNT 1> | |
8393 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8394 | <END_RESULT> | |
8395 | <RESULT IF_PASS COUNT 1> | |
8396 | (?is)\berror: | |
8397 | <END_RESULT> | |
8398 | <RESULT IF_PASS POSITIVE> | |
8399 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8400 | <END_RESULT> | |
8401 | <END_TC> | |
8402 | :exmp. | |
8403 | ||
8404 | .*---------------------------------------------------------------------* | |
8405 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->TimerValue | |
8406 | .*---------------------------------------------------------------------* | |
8407 | :xmp tab=0. | |
8408 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StartTimerStatement->TimerValue> | |
8409 | <COMPILE> | |
8410 | <VERDICT_LEAF PASS> | |
8411 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8412 | module ModuleA { | |
8413 | control { | |
8414 | timer MyTimer1; | |
8415 | MyTimer1.start(2.0 + Nonexi04); | |
8416 | } | |
8417 | } | |
8418 | <END_MODULE> | |
8419 | <RESULT IF_PASS COUNT 1> | |
8420 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8421 | <END_RESULT> | |
8422 | <RESULT IF_PASS COUNT 1> | |
8423 | (?is)\berror: | |
8424 | <END_RESULT> | |
8425 | <RESULT IF_PASS POSITIVE> | |
8426 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8427 | <END_RESULT> | |
8428 | <END_TC> | |
8429 | :exmp. | |
8430 | ||
8431 | .*---------------------------------------------------------------------* | |
8432 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->TimerRef | |
8433 | .*---------------------------------------------------------------------* | |
8434 | :xmp tab=0. | |
8435 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->TimerRef> | |
8436 | <COMPILE> | |
8437 | <VERDICT_LEAF PASS> | |
8438 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8439 | module ModuleA { | |
8440 | control { | |
8441 | Nonexi01.stop; | |
8442 | } | |
8443 | } | |
8444 | <END_MODULE> | |
8445 | <RESULT IF_PASS COUNT 1> | |
8446 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8447 | <END_RESULT> | |
8448 | <RESULT IF_PASS COUNT 1> | |
8449 | (?is)\berror: | |
8450 | <END_RESULT> | |
8451 | <RESULT IF_PASS POSITIVE> | |
8452 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8453 | <END_RESULT> | |
8454 | <END_TC> | |
8455 | :exmp. | |
8456 | ||
8457 | .*---------------------------------------------------------------------* | |
8458 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->ArrayOrBitRef | |
8459 | .*---------------------------------------------------------------------* | |
8460 | :xmp tab=0. | |
8461 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->ArrayOrBitRef> | |
8462 | <COMPILE> | |
8463 | <VERDICT_LEAF PASS> | |
8464 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8465 | module ModuleA { | |
8466 | control { | |
8467 | timer MyTimer2[10]; | |
8468 | MyTimer2[1].start(1.0); | |
8469 | MyTimer2[Nonexi02 + 1].stop; | |
8470 | } | |
8471 | } | |
8472 | <END_MODULE> | |
8473 | <RESULT IF_PASS COUNT 1> | |
8474 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8475 | <END_RESULT> | |
8476 | <RESULT IF_PASS COUNT 1> | |
8477 | (?is)\berror: | |
8478 | <END_RESULT> | |
8479 | <RESULT IF_PASS POSITIVE> | |
8480 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8481 | <END_RESULT> | |
8482 | <END_TC> | |
8483 | :exmp. | |
8484 | ||
8485 | .*---------------------------------------------------------------------* | |
8486 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->ArrayOrBitRef->Multidimensional | |
8487 | .*---------------------------------------------------------------------* | |
8488 | :xmp tab=0. | |
8489 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: StopTimerStatement->ArrayOrBitRef->Multidimensional> | |
8490 | <COMPILE> | |
8491 | <VERDICT_LEAF PASS> | |
8492 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8493 | module ModuleA { | |
8494 | control { | |
8495 | // NOTE: pending CR for multidimensional timers, not yet supported | |
8496 | timer MyTimer2[10][10][10000]; | |
8497 | MyTimer2[2][2][1].start(1.0); | |
8498 | MyTimer2[2][2][Nonexi02 + 1].stop; | |
8499 | } | |
8500 | } | |
8501 | <END_MODULE> | |
8502 | <RESULT IF_PASS COUNT 1> | |
8503 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8504 | <END_RESULT> | |
8505 | <RESULT IF_PASS COUNT 1> | |
8506 | (?is)\berror: | |
8507 | <END_RESULT> | |
8508 | <RESULT IF_PASS POSITIVE> | |
8509 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8510 | <END_RESULT> | |
8511 | <END_TC> | |
8512 | :exmp. | |
8513 | ||
8514 | .*---------------------------------------------------------------------* | |
8515 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->TimerRef | |
8516 | .*---------------------------------------------------------------------* | |
8517 | :xmp tab=0. | |
8518 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->TimerRef> | |
8519 | <COMPILE> | |
8520 | <VERDICT_LEAF PASS> | |
8521 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8522 | module ModuleA { | |
8523 | control { | |
8524 | Nonexi01.timeout; | |
8525 | } | |
8526 | } | |
8527 | <END_MODULE> | |
8528 | <RESULT IF_PASS COUNT 1> | |
8529 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8530 | <END_RESULT> | |
8531 | <RESULT IF_PASS COUNT 1> | |
8532 | (?is)\berror: | |
8533 | <END_RESULT> | |
8534 | <RESULT IF_PASS POSITIVE> | |
8535 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8536 | <END_RESULT> | |
8537 | <END_TC> | |
8538 | :exmp. | |
8539 | ||
8540 | .*---------------------------------------------------------------------* | |
8541 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->ArrayOrBitRef | |
8542 | .*---------------------------------------------------------------------* | |
8543 | :xmp tab=0. | |
8544 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->ArrayOrBitRef> | |
8545 | <COMPILE> | |
8546 | <VERDICT_LEAF PASS> | |
8547 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8548 | module ModuleA { | |
8549 | control { | |
8550 | timer MyTimer2[10]; | |
8551 | MyTimer2[1].start(1.0); | |
8552 | MyTimer2[Nonexi02 + 1].timeout; | |
8553 | } | |
8554 | } | |
8555 | <END_MODULE> | |
8556 | <RESULT IF_PASS COUNT 1> | |
8557 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8558 | <END_RESULT> | |
8559 | <RESULT IF_PASS COUNT 1> | |
8560 | (?is)\berror: | |
8561 | <END_RESULT> | |
8562 | <RESULT IF_PASS POSITIVE> | |
8563 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8564 | <END_RESULT> | |
8565 | <END_TC> | |
8566 | :exmp. | |
8567 | ||
8568 | .*---------------------------------------------------------------------* | |
8569 | :h3.TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->ArrayOrBitRef->Multidimensional | |
8570 | .*---------------------------------------------------------------------* | |
8571 | :xmp tab=0. | |
8572 | <TC - TTCN-3::ModuleControlPart->ControlStatement->TimerStatements: TimeoutStatement->ArrayOrBitRef->Multidimensional> | |
8573 | <COMPILE> | |
8574 | <VERDICT_LEAF PASS> | |
8575 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8576 | module ModuleA { | |
8577 | control { | |
8578 | // NOTE: pending CR for multidimensional timers, not yet supported | |
8579 | timer MyTimer2[10][10][10000]; | |
8580 | MyTimer2[2][2][1].start(10.0); | |
8581 | MyTimer2[2][2][Nonexi02 + 1].timeout; | |
8582 | } | |
8583 | } | |
8584 | <END_MODULE> | |
8585 | <RESULT IF_PASS COUNT 1> | |
8586 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8587 | <END_RESULT> | |
8588 | <RESULT IF_PASS COUNT 1> | |
8589 | (?is)\berror: | |
8590 | <END_RESULT> | |
8591 | <RESULT IF_PASS POSITIVE> | |
8592 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8593 | <END_RESULT> | |
8594 | <END_TC> | |
8595 | :exmp. | |
8596 | ||
8597 | .*---------------------------------------------------------------------* | |
8598 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->LogStatement | |
8599 | .*---------------------------------------------------------------------* | |
8600 | :xmp tab=0. | |
8601 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->LogStatement> | |
8602 | <COMPILE> | |
8603 | <VERDICT_LEAF PASS> | |
8604 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8605 | module ModuleA { | |
8606 | control { | |
8607 | // TR 614: expression in log statement | |
8608 | log("McHalls was here...", 333 + Nonexi01); | |
8609 | } | |
8610 | } | |
8611 | <END_MODULE> | |
8612 | <RESULT IF_PASS COUNT 1> | |
8613 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8614 | <END_RESULT> | |
8615 | <RESULT IF_PASS COUNT 1> | |
8616 | (?is)\berror: | |
8617 | <END_RESULT> | |
8618 | <RESULT IF_PASS POSITIVE> | |
8619 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8620 | <END_RESULT> | |
8621 | <END_TC> | |
8622 | :exmp. | |
8623 | ||
8624 | .*---------------------------------------------------------------------* | |
8625 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->ForLoop | |
8626 | .*---------------------------------------------------------------------* | |
8627 | :xmp tab=0. | |
8628 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->ForLoop> | |
8629 | <COMPILE> | |
8630 | <VERDICT_LEAF PASS> | |
8631 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8632 | module ModuleA { | |
8633 | control { | |
8634 | for (var Nonexi02 MyVar1 := 1, MyVar2; true; MyVar1:=MyVar1) {} | |
8635 | } | |
8636 | } | |
8637 | <END_MODULE> | |
8638 | <RESULT IF_PASS COUNT 1> | |
8639 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8640 | <END_RESULT> | |
8641 | <RESULT IF_PASS COUNT 1> | |
8642 | (?is)\berror: | |
8643 | <END_RESULT> | |
8644 | <RESULT IF_PASS POSITIVE> | |
8645 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8646 | <END_RESULT> | |
8647 | <END_TC> | |
8648 | :exmp. | |
8649 | ||
8650 | .*---------------------------------------------------------------------* | |
8651 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->WhileLoop | |
8652 | .*---------------------------------------------------------------------* | |
8653 | :xmp tab=0. | |
8654 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->WhileLoop> | |
8655 | <COMPILE> | |
8656 | <VERDICT_LEAF PASS> | |
8657 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8658 | module ModuleA { | |
8659 | control { | |
8660 | while ( 2 + Nonexi03 > 2 + Nonexi04 ) {} | |
8661 | } | |
8662 | } | |
8663 | <END_MODULE> | |
8664 | <RESULT IF_PASS COUNT 2> | |
8665 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8666 | <END_RESULT> | |
8667 | <RESULT IF_PASS COUNT 2> | |
8668 | (?is)\berror: | |
8669 | <END_RESULT> | |
8670 | <RESULT IF_PASS POSITIVE> | |
8671 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8672 | <END_RESULT> | |
8673 | <END_TC> | |
8674 | :exmp. | |
8675 | ||
8676 | .*---------------------------------------------------------------------* | |
8677 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->DoWhileLoop | |
8678 | .*---------------------------------------------------------------------* | |
8679 | :xmp tab=0. | |
8680 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->DoWhileLoop> | |
8681 | <COMPILE> | |
8682 | <VERDICT_LEAF PASS> | |
8683 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8684 | module ModuleA { | |
8685 | control { | |
8686 | do {} while ( 2 + Nonexi05 > 2 + Nonexi06 ); | |
8687 | } | |
8688 | } | |
8689 | <END_MODULE> | |
8690 | <RESULT IF_PASS COUNT 2> | |
8691 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8692 | <END_RESULT> | |
8693 | <RESULT IF_PASS COUNT 2> | |
8694 | (?is)\berror: | |
8695 | <END_RESULT> | |
8696 | <RESULT IF_PASS POSITIVE> | |
8697 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8698 | <END_RESULT> | |
8699 | <END_TC> | |
8700 | :exmp. | |
8701 | ||
8702 | .*---------------------------------------------------------------------* | |
8703 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->ConditionalConstruct | |
8704 | .*---------------------------------------------------------------------* | |
8705 | :xmp tab=0. | |
8706 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BasicStatements->ConditionalConstruct> | |
8707 | <COMPILE> | |
8708 | <VERDICT_LEAF PASS> | |
8709 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8710 | module ModuleA { | |
8711 | control { | |
8712 | if (2 + Nonexi07 > 2 + Nonexi08) {} | |
8713 | else if (2 + Nonexi09 > 2 + Nonexi10) {} | |
8714 | else {} | |
8715 | } | |
8716 | } | |
8717 | <END_MODULE> | |
8718 | <RESULT IF_PASS COUNT 4> | |
8719 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8720 | <END_RESULT> | |
8721 | <RESULT IF_PASS COUNT 4> | |
8722 | (?is)\berror: | |
8723 | <END_RESULT> | |
8724 | <RESULT IF_PASS POSITIVE> | |
8725 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8726 | <END_RESULT> | |
8727 | <END_TC> | |
8728 | :exmp. | |
8729 | ||
8730 | .*---------------------------------------------------------------------* | |
8731 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: ReturnStatement | |
8732 | .*---------------------------------------------------------------------* | |
8733 | :xmp tab=0. | |
8734 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: ReturnStatement> | |
8735 | <COMPILE> | |
8736 | <VERDICT_LEAF PASS> | |
8737 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8738 | module ModuleA { | |
8739 | function MyFunc1() return integer { return 333 + Nonexi01; } | |
8740 | } | |
8741 | <END_MODULE> | |
8742 | <RESULT IF_PASS COUNT 1> | |
8743 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8744 | <END_RESULT> | |
8745 | <RESULT IF_PASS COUNT 1> | |
8746 | (?is)\berror: | |
8747 | <END_RESULT> | |
8748 | <RESULT IF_PASS POSITIVE> | |
8749 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8750 | <END_RESULT> | |
8751 | <END_TC> | |
8752 | :exmp. | |
8753 | ||
8754 | .*---------------------------------------------------------------------* | |
8755 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: DeactivateStatement | |
8756 | .*---------------------------------------------------------------------* | |
8757 | :xmp tab=0. | |
8758 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: DeactivateStatement> | |
8759 | <COMPILE> | |
8760 | <VERDICT_LEAF PASS> | |
8761 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8762 | module ModuleA { | |
8763 | ||
8764 | type port MyPortType message{ | |
8765 | inout integer; | |
8766 | } | |
8767 | type component MyComp { | |
8768 | port MyPortType MyPort | |
8769 | } | |
8770 | ||
8771 | testcase MyTC1() runs on MyComp { deactivate(Nonexi02); } | |
8772 | } | |
8773 | <END_MODULE> | |
8774 | <RESULT IF_PASS COUNT 1> | |
8775 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8776 | <END_RESULT> | |
8777 | <RESULT IF_PASS COUNT 1> | |
8778 | (?is)\berror: | |
8779 | <END_RESULT> | |
8780 | <RESULT IF_PASS POSITIVE> | |
8781 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8782 | <END_RESULT> | |
8783 | <END_TC> | |
8784 | :exmp. | |
8785 | ||
8786 | .*---------------------------------------------------------------------* | |
8787 | :h3.TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: GotoStatement | |
8788 | .*---------------------------------------------------------------------* | |
8789 | :xmp tab=0. | |
8790 | <TC - TTCN-3::ModuleControlPart->ControlStatement->BehaviourStatements: GotoStatement> | |
8791 | <COMPILE> | |
8792 | <VERDICT_LEAF PASS> | |
8793 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8794 | module ModuleA { | |
8795 | control { | |
8796 | // already covered in expressions: | |
8797 | // - TestcaseInstance | |
8798 | // - FunctionInstance | |
8799 | // AltConstruct already covered in 'AltstepDef' | |
8800 | // InterleavedConstruct is not supported yet | |
8801 | // GotoStatement | |
8802 | goto Nonexi03; | |
8803 | // ActivateOp already covered | |
8804 | } | |
8805 | } | |
8806 | <END_MODULE> | |
8807 | <RESULT IF_PASS COUNT 1> | |
8808 | (?im)\berror\b.+?Label.+?Nonexi.+?used.+?not.+?defined | |
8809 | <END_RESULT> | |
8810 | <RESULT IF_PASS COUNT 1> | |
8811 | (?is)\berror: | |
8812 | <END_RESULT> | |
8813 | <RESULT IF_PASS POSITIVE> | |
8814 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8815 | <END_RESULT> | |
8816 | <END_TC> | |
8817 | :exmp. | |
8818 | ||
8819 | .*---------------------------------------------------------------------* | |
8820 | :h3.TTCN-3::ModuleControlPart->ControlStatement->SUTStatements | |
8821 | .*---------------------------------------------------------------------* | |
8822 | :xmp tab=0. | |
8823 | <TC - TTCN-3::ModuleControlPart->ControlStatement->SUTStatements> | |
8824 | <COMPILE> | |
8825 | <VERDICT_LEAF PASS> | |
8826 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8827 | module ModuleA { | |
8828 | control { | |
8829 | // TR 614: expression in log statement | |
8830 | action("McHalls was here...", 333 + Nonexi01); | |
8831 | } | |
8832 | } | |
8833 | <END_MODULE> | |
8834 | <RESULT IF_PASS COUNT 1> | |
8835 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8836 | <END_RESULT> | |
8837 | <RESULT IF_PASS COUNT 1> | |
8838 | (?is)\berror: | |
8839 | <END_RESULT> | |
8840 | <RESULT IF_PASS POSITIVE> | |
8841 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8842 | <END_RESULT> | |
8843 | <END_TC> | |
8844 | :exmp. | |
8845 | ||
8846 | .*---------------------------------------------------------------------* | |
8847 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->ComponentIdentifier | |
8848 | .*---------------------------------------------------------------------* | |
8849 | :xmp tab=0. | |
8850 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->ComponentIdentifier> | |
8851 | <COMPILE> | |
8852 | <VERDICT_LEAF PASS> | |
8853 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8854 | module ModuleA { | |
8855 | type record MyType { | |
8856 | MyComp field1 | |
8857 | } | |
8858 | type port MyPortType message{ | |
8859 | inout integer; | |
8860 | } | |
8861 | type component MyComp { | |
8862 | port MyPortType MyPort; | |
8863 | port MyPortType MyPort2[10]; | |
8864 | } | |
8865 | function MyFunc1() runs on MyComp { | |
8866 | var MyType MyVar; | |
8867 | map(Nonexi01:MyPort, system:MyPort); | |
8868 | } | |
8869 | } | |
8870 | <END_MODULE> | |
8871 | <RESULT IF_PASS COUNT 1> | |
8872 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8873 | <END_RESULT> | |
8874 | <RESULT IF_PASS COUNT 1> | |
8875 | (?is)\berror: | |
8876 | <END_RESULT> | |
8877 | <RESULT IF_PASS POSITIVE> | |
8878 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8879 | <END_RESULT> | |
8880 | <END_TC> | |
8881 | :exmp. | |
8882 | ||
8883 | .*---------------------------------------------------------------------* | |
8884 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->VariableRef | |
8885 | .*---------------------------------------------------------------------* | |
8886 | :xmp tab=0. | |
8887 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->VariableRef> | |
8888 | <COMPILE> | |
8889 | <VERDICT_LEAF PASS> | |
8890 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8891 | module ModuleA { | |
8892 | type record MyType { | |
8893 | MyComp field1 | |
8894 | } | |
8895 | type port MyPortType message{ | |
8896 | inout integer; | |
8897 | } | |
8898 | type component MyComp { | |
8899 | port MyPortType MyPort; | |
8900 | port MyPortType MyPort2[10]; | |
8901 | } | |
8902 | function MyFunc1() runs on MyComp { | |
8903 | var MyType MyVar; | |
8904 | map(MyVar.Nonexi03:MyPort, system:MyPort); | |
8905 | } | |
8906 | } | |
8907 | <END_MODULE> | |
8908 | <RESULT IF_PASS COUNT 1> | |
8909 | (?im)\berror\b.+?reference.+?to.+?non.*?existent.+?field.+?Nonexi | |
8910 | <END_RESULT> | |
8911 | <RESULT IF_PASS COUNT 1> | |
8912 | (?is)\berror: | |
8913 | <END_RESULT> | |
8914 | <RESULT IF_PASS POSITIVE> | |
8915 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8916 | <END_RESULT> | |
8917 | <END_TC> | |
8918 | :exmp. | |
8919 | ||
8920 | .*---------------------------------------------------------------------* | |
8921 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->FunctionInstance | |
8922 | .*---------------------------------------------------------------------* | |
8923 | :xmp tab=0. | |
8924 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->FunctionInstance> | |
8925 | <COMPILE> | |
8926 | <VERDICT_LEAF PASS> | |
8927 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8928 | module ModuleA { | |
8929 | type record MyType { | |
8930 | MyComp field1 | |
8931 | } | |
8932 | type port MyPortType message{ | |
8933 | inout integer; | |
8934 | } | |
8935 | type component MyComp { | |
8936 | port MyPortType MyPort; | |
8937 | port MyPortType MyPort2[10]; | |
8938 | } | |
8939 | function MyFunc1() runs on MyComp { | |
8940 | var MyType MyVar; | |
8941 | map(Nonexi04():MyPort, system:MyPort); | |
8942 | } | |
8943 | } | |
8944 | <END_MODULE> | |
8945 | <RESULT IF_PASS COUNT 1> | |
8946 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
8947 | <END_RESULT> | |
8948 | <RESULT IF_PASS COUNT 1> | |
8949 | (?is)\berror: | |
8950 | <END_RESULT> | |
8951 | <RESULT IF_PASS POSITIVE> | |
8952 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8953 | <END_RESULT> | |
8954 | <END_TC> | |
8955 | :exmp. | |
8956 | ||
8957 | .*---------------------------------------------------------------------* | |
8958 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->Port->PortIdentifier | |
8959 | .*---------------------------------------------------------------------* | |
8960 | :xmp tab=0. | |
8961 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->Port->PortIdentifier> | |
8962 | <COMPILE> | |
8963 | <VERDICT_LEAF PASS> | |
8964 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
8965 | module ModuleA { | |
8966 | type record MyType { | |
8967 | MyComp field1 | |
8968 | } | |
8969 | type port MyPortType message{ | |
8970 | inout integer; | |
8971 | } | |
8972 | type component MyComp { | |
8973 | port MyPortType MyPort; | |
8974 | port MyPortType MyPort2[10]; | |
8975 | } | |
8976 | function MyFunc1() runs on MyComp { | |
8977 | var MyType MyVar := { field1 := MyComp.create }; | |
8978 | map(MyVar.field1:Nonexi05, system:MyPort); | |
8979 | } | |
8980 | } | |
8981 | <END_MODULE> | |
8982 | <RESULT IF_PASS COUNT 1> | |
8983 | (?im)\berror\b.+?component.+?does.+?not.+?have.+?port.+?nonexi | |
8984 | <END_RESULT> | |
8985 | <RESULT IF_PASS COUNT 1> | |
8986 | (?is)\berror: | |
8987 | <END_RESULT> | |
8988 | <RESULT IF_PASS POSITIVE> | |
8989 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
8990 | <END_RESULT> | |
8991 | <END_TC> | |
8992 | :exmp. | |
8993 | ||
8994 | .*---------------------------------------------------------------------* | |
8995 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->Port->ArrayOrBitRef | |
8996 | .*---------------------------------------------------------------------* | |
8997 | :xmp tab=0. | |
8998 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->PortSpec->ComponentRef->Port->ArrayOrBitRef> | |
8999 | <COMPILE> | |
9000 | <VERDICT_LEAF PASS> | |
9001 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9002 | module ModuleA { | |
9003 | type record MyType { | |
9004 | MyComp field1 | |
9005 | } | |
9006 | type port MyPortType message{ | |
9007 | inout integer; | |
9008 | } | |
9009 | type component MyComp { | |
9010 | port MyPortType MyPort; | |
9011 | port MyPortType MyPort2[10]; | |
9012 | } | |
9013 | function MyFunc1() runs on MyComp { | |
9014 | var MyType MyVar; | |
9015 | map(MyVar.field1:MyPort2[Nonexi06], system:MyPort); | |
9016 | } | |
9017 | } | |
9018 | <END_MODULE> | |
9019 | <RESULT IF_PASS COUNT 1> | |
9020 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9021 | <END_RESULT> | |
9022 | <RESULT IF_PASS COUNT 1> | |
9023 | (?is)\berror: | |
9024 | <END_RESULT> | |
9025 | <RESULT IF_PASS POSITIVE> | |
9026 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9027 | <END_RESULT> | |
9028 | <END_TC> | |
9029 | :exmp. | |
9030 | ||
9031 | .*---------------------------------------------------------------------* | |
9032 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->ConnectStatement | |
9033 | .*---------------------------------------------------------------------* | |
9034 | :xmp tab=0. | |
9035 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->ConnectStatement> | |
9036 | <COMPILE> | |
9037 | <VERDICT_LEAF PASS> | |
9038 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9039 | module ModuleA { | |
9040 | type port MyPortType message{ | |
9041 | inout integer; | |
9042 | } | |
9043 | type component MyComp { | |
9044 | port MyPortType MyPort | |
9045 | } | |
9046 | function MyFunc2() runs on MyComp {} | |
9047 | // FunctionLocalDef and FunctionLocalInst are already covered | |
9048 | function MyFunc1() runs on MyComp { | |
9049 | var MyComp MyCompInst1 := MyComp.create; | |
9050 | var MyComp MyCompInst2[10]; | |
9051 | // ConnectStatement | |
9052 | // Nonexi02 shall not be reported as the component type is not known | |
9053 | connect(Nonexi01():Nonexi02, MyCompInst2[Nonexi03]:MyPort); | |
9054 | } | |
9055 | } | |
9056 | <END_MODULE> | |
9057 | <RESULT IF_PASS COUNT 2> | |
9058 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9059 | <END_RESULT> | |
9060 | <RESULT IF_PASS COUNT 2> | |
9061 | (?is)\berror: | |
9062 | <END_RESULT> | |
9063 | <RESULT IF_PASS POSITIVE> | |
9064 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9065 | <END_RESULT> | |
9066 | <END_TC> | |
9067 | :exmp. | |
9068 | ||
9069 | .*---------------------------------------------------------------------* | |
9070 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->MapStatement | |
9071 | .*---------------------------------------------------------------------* | |
9072 | :xmp tab=0. | |
9073 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->MapStatement> | |
9074 | <COMPILE> | |
9075 | <VERDICT_LEAF PASS> | |
9076 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9077 | module ModuleA { | |
9078 | type port MyPortType message{ | |
9079 | inout integer; | |
9080 | } | |
9081 | type component MyComp { | |
9082 | port MyPortType MyPort | |
9083 | } | |
9084 | function MyFunc2() runs on MyComp {} | |
9085 | function MyFunc1() runs on MyComp { | |
9086 | var MyComp MyCompInst1 := MyComp.create; | |
9087 | var MyComp MyCompInst2[10]; | |
9088 | // MapStatement already covered in 'PortSpec' | |
9089 | // Only Nonexi04 shall be reported. Nonexi05 shall not be as the component type is not | |
9090 | // yet known; Nonexi06 shall not be as system value is not yet known. | |
9091 | map(Nonexi04():Nonexi05, system:Nonexi06); | |
9092 | } | |
9093 | } | |
9094 | <END_MODULE> | |
9095 | <RESULT IF_PASS COUNT 1> | |
9096 | (?im)\berror\b.+?no.+?definition.+?Nonexi04 | |
9097 | <END_RESULT> | |
9098 | <RESULT IF_PASS COUNT 1> | |
9099 | (?is)\berror: | |
9100 | <END_RESULT> | |
9101 | <RESULT IF_PASS POSITIVE> | |
9102 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9103 | <END_RESULT> | |
9104 | <END_TC> | |
9105 | :exmp. | |
9106 | ||
9107 | .*---------------------------------------------------------------------* | |
9108 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->DisconnectStatement | |
9109 | .*---------------------------------------------------------------------* | |
9110 | :xmp tab=0. | |
9111 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->DisconnectStatement> | |
9112 | <COMPILE> | |
9113 | <VERDICT_LEAF PASS> | |
9114 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9115 | module ModuleA { | |
9116 | type port MyPortType message{ | |
9117 | inout integer; | |
9118 | } | |
9119 | type component MyComp { | |
9120 | port MyPortType MyPort | |
9121 | } | |
9122 | function MyFunc2() runs on MyComp {} | |
9123 | function MyFunc1() runs on MyComp { | |
9124 | var MyComp MyCompInst1 := MyComp.create; | |
9125 | var MyComp MyCompInst2[10]; | |
9126 | // Nonexi08 shall not be reported, component is not known | |
9127 | disconnect(Nonexi07():Nonexi08, MyCompInst2[Nonexi09]:MyPort); | |
9128 | } | |
9129 | } | |
9130 | <END_MODULE> | |
9131 | <RESULT IF_PASS COUNT 1> | |
9132 | (?im)\berror\b.+?no.+?definition.+?Nonexi07 | |
9133 | <END_RESULT> | |
9134 | <RESULT IF_PASS COUNT 1> | |
9135 | (?im)\berror\b.+?no.+?definition.+?Nonexi09 | |
9136 | <END_RESULT> | |
9137 | <RESULT IF_PASS COUNT 2> | |
9138 | (?is)\berror: | |
9139 | <END_RESULT> | |
9140 | <RESULT IF_PASS POSITIVE> | |
9141 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9142 | <END_RESULT> | |
9143 | <END_TC> | |
9144 | :exmp. | |
9145 | ||
9146 | .*---------------------------------------------------------------------* | |
9147 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->UnmapStatement | |
9148 | .*---------------------------------------------------------------------* | |
9149 | :xmp tab=0. | |
9150 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->UnmapStatement> | |
9151 | <COMPILE> | |
9152 | <VERDICT_LEAF PASS> | |
9153 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9154 | module ModuleA { | |
9155 | type port MyPortType message{ | |
9156 | inout integer; | |
9157 | } | |
9158 | type component MyComp { | |
9159 | port MyPortType MyPort | |
9160 | } | |
9161 | function MyFunc2() runs on MyComp {} | |
9162 | function MyFunc1() runs on MyComp { | |
9163 | var MyComp MyCompInst1 := MyComp.create; | |
9164 | var MyComp MyCompInst2[10]; | |
9165 | // Nonexi11 shall not be reported, component is not known | |
9166 | // Nonexi12 shall not be reported, system value is not yet known | |
9167 | unmap(Nonexi10():Nonexi11, system:Nonexi12); | |
9168 | } | |
9169 | } | |
9170 | <END_MODULE> | |
9171 | <RESULT IF_PASS COUNT 1> | |
9172 | (?im)\berror\b.+?no.+?definition.+?Nonexi10 | |
9173 | <END_RESULT> | |
9174 | <RESULT IF_PASS COUNT 1> | |
9175 | (?is)\berror: | |
9176 | <END_RESULT> | |
9177 | <RESULT IF_PASS POSITIVE> | |
9178 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9179 | <END_RESULT> | |
9180 | <END_TC> | |
9181 | :exmp. | |
9182 | ||
9183 | .*---------------------------------------------------------------------* | |
9184 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->DoneStatement | |
9185 | .*---------------------------------------------------------------------* | |
9186 | :xmp tab=0. | |
9187 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->DoneStatement> | |
9188 | <COMPILE> | |
9189 | <VERDICT_LEAF PASS> | |
9190 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9191 | module ModuleA { | |
9192 | type port MyPortType message{ | |
9193 | inout integer; | |
9194 | } | |
9195 | type component MyComp { | |
9196 | port MyPortType MyPort | |
9197 | } | |
9198 | function MyFunc2() runs on MyComp {} | |
9199 | function MyFunc1() runs on MyComp { | |
9200 | var MyComp MyCompInst1 := MyComp.create; | |
9201 | var MyComp MyCompInst2[10]; | |
9202 | Nonexi13.done; | |
9203 | Nonexi14().done; | |
9204 | } | |
9205 | } | |
9206 | <END_MODULE> | |
9207 | <RESULT IF_PASS COUNT 2> | |
9208 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9209 | <END_RESULT> | |
9210 | <RESULT IF_PASS COUNT 2> | |
9211 | (?is)\berror: | |
9212 | <END_RESULT> | |
9213 | <RESULT IF_PASS POSITIVE> | |
9214 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9215 | <END_RESULT> | |
9216 | <END_TC> | |
9217 | :exmp. | |
9218 | ||
9219 | .*---------------------------------------------------------------------* | |
9220 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->StartTCStatement | |
9221 | .*---------------------------------------------------------------------* | |
9222 | :xmp tab=0. | |
9223 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->StartTCStatement> | |
9224 | <COMPILE> | |
9225 | <VERDICT_LEAF PASS> | |
9226 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9227 | module ModuleA { | |
9228 | type port MyPortType message{ | |
9229 | inout integer; | |
9230 | } | |
9231 | type component MyComp { | |
9232 | port MyPortType MyPort | |
9233 | } | |
9234 | function MyFunc2() runs on MyComp {} | |
9235 | function MyFunc1() runs on MyComp { | |
9236 | var MyComp MyCompInst1 := MyComp.create; | |
9237 | var MyComp MyCompInst2[10]; | |
9238 | Nonexi15.start(MyFunc2()); | |
9239 | Nonexi16().start(MyFunc2()); | |
9240 | MyCompInst1.start(Nonexi17()); | |
9241 | } | |
9242 | } | |
9243 | <END_MODULE> | |
9244 | <RESULT IF_PASS COUNT 3> | |
9245 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9246 | <END_RESULT> | |
9247 | <RESULT IF_PASS COUNT 3> | |
9248 | (?is)\berror: | |
9249 | <END_RESULT> | |
9250 | <RESULT IF_PASS POSITIVE> | |
9251 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9252 | <END_RESULT> | |
9253 | <END_TC> | |
9254 | :exmp. | |
9255 | ||
9256 | .*---------------------------------------------------------------------* | |
9257 | :h3.TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->StopTCStatement | |
9258 | .*---------------------------------------------------------------------* | |
9259 | :xmp tab=0. | |
9260 | <TC - TTCN-3::StatementBlock->FunctionStatement->ConfigurationStatements->StopTCStatement> | |
9261 | <COMPILE> | |
9262 | <VERDICT_LEAF PASS> | |
9263 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9264 | module ModuleA { | |
9265 | type port MyPortType message{ | |
9266 | inout integer; | |
9267 | } | |
9268 | type component MyComp { | |
9269 | port MyPortType MyPort | |
9270 | } | |
9271 | function MyFunc2() runs on MyComp {} | |
9272 | function MyFunc1() runs on MyComp { | |
9273 | var MyComp MyCompInst1 := MyComp.create; | |
9274 | var MyComp MyCompInst2[10]; | |
9275 | Nonexi18.stop; | |
9276 | Nonexi19().stop; | |
9277 | } | |
9278 | } | |
9279 | <END_MODULE> | |
9280 | <RESULT IF_PASS COUNT 2> | |
9281 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9282 | <END_RESULT> | |
9283 | <RESULT IF_PASS COUNT 2> | |
9284 | (?is)\berror: | |
9285 | <END_RESULT> | |
9286 | <RESULT IF_PASS POSITIVE> | |
9287 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9288 | <END_RESULT> | |
9289 | <END_TC> | |
9290 | :exmp. | |
9291 | ||
9292 | .*---------------------------------------------------------------------* | |
9293 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->Port->Identifier | |
9294 | .*---------------------------------------------------------------------* | |
9295 | :xmp tab=0. | |
9296 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->Port->Identifier> | |
9297 | <COMPILE> | |
9298 | <VERDICT_LEAF PASS> | |
9299 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9300 | // The followings are already covered: | |
9301 | // receive, trigger, getcall, getreply, catch, check | |
9302 | module ModuleA { | |
9303 | type port MyPortType message{ | |
9304 | inout integer; | |
9305 | } | |
9306 | type component MyComp { | |
9307 | port MyPortType MyPort; | |
9308 | port MyPortType MyPort2[10]; | |
9309 | } | |
9310 | function MyFunc1() runs on MyComp { | |
9311 | Nonexi01.send(10); | |
9312 | } | |
9313 | } | |
9314 | <END_MODULE> | |
9315 | <RESULT IF_PASS COUNT 1> | |
9316 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9317 | <END_RESULT> | |
9318 | <RESULT IF_PASS COUNT 1> | |
9319 | (?is)\berror: | |
9320 | <END_RESULT> | |
9321 | <RESULT IF_PASS POSITIVE> | |
9322 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9323 | <END_RESULT> | |
9324 | <END_TC> | |
9325 | :exmp. | |
9326 | ||
9327 | .*---------------------------------------------------------------------* | |
9328 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->Port->ArrayOrBitRef | |
9329 | .*---------------------------------------------------------------------* | |
9330 | :xmp tab=0. | |
9331 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->Port->ArrayOrBitRef> | |
9332 | <COMPILE> | |
9333 | <VERDICT_LEAF PASS> | |
9334 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9335 | // The followings are already covered: | |
9336 | // receive, trigger, getcall, getreply, catch, check | |
9337 | module ModuleA { | |
9338 | type port MyPortType message{ | |
9339 | inout integer; | |
9340 | } | |
9341 | type component MyComp { | |
9342 | port MyPortType MyPort; | |
9343 | port MyPortType MyPort2[10]; | |
9344 | } | |
9345 | function MyFunc1() runs on MyComp { | |
9346 | MyPort2[333+Nonexi02].send(10+0); | |
9347 | } | |
9348 | } | |
9349 | <END_MODULE> | |
9350 | <RESULT IF_PASS COUNT 1> | |
9351 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9352 | <END_RESULT> | |
9353 | <RESULT IF_PASS COUNT 1> | |
9354 | (?is)\berror: | |
9355 | <END_RESULT> | |
9356 | <RESULT IF_PASS POSITIVE> | |
9357 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9358 | <END_RESULT> | |
9359 | <END_TC> | |
9360 | :exmp. | |
9361 | ||
9362 | .*---------------------------------------------------------------------* | |
9363 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp | |
9364 | .*---------------------------------------------------------------------* | |
9365 | :xmp tab=0. | |
9366 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp> | |
9367 | <COMPILE> | |
9368 | <VERDICT_LEAF PASS> | |
9369 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9370 | // The followings are already covered: | |
9371 | // receive, trigger, getcall, getreply, catch, check | |
9372 | module ModuleA { | |
9373 | type port MyPortType message{ | |
9374 | inout integer; | |
9375 | } | |
9376 | type component MyComp { | |
9377 | port MyPortType MyPort; | |
9378 | port MyPortType MyPort2[10]; | |
9379 | } | |
9380 | function MyFunc1() runs on MyComp { | |
9381 | // others are covered in TemplateInstance | |
9382 | MyPort.send(10+Nonexi03); | |
9383 | } | |
9384 | } | |
9385 | <END_MODULE> | |
9386 | <RESULT IF_PASS COUNT 1> | |
9387 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9388 | <END_RESULT> | |
9389 | <RESULT IF_PASS COUNT 1> | |
9390 | (?is)\berror: | |
9391 | <END_RESULT> | |
9392 | <RESULT IF_PASS POSITIVE> | |
9393 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9394 | <END_RESULT> | |
9395 | <END_TC> | |
9396 | :exmp. | |
9397 | ||
9398 | .*---------------------------------------------------------------------* | |
9399 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp->ToClause1 | |
9400 | .*---------------------------------------------------------------------* | |
9401 | :xmp tab=0. | |
9402 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp->ToClause1> | |
9403 | <COMPILE> | |
9404 | <VERDICT_LEAF PASS> | |
9405 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9406 | // The followings are already covered: | |
9407 | // receive, trigger, getcall, getreply, catch, check | |
9408 | module ModuleA { | |
9409 | type port MyPortType message{ | |
9410 | inout integer; | |
9411 | } | |
9412 | type component MyComp { | |
9413 | port MyPortType MyPort; | |
9414 | port MyPortType MyPort2[10]; | |
9415 | } | |
9416 | function MyFunc1() runs on MyComp { | |
9417 | MyPort.send(10) to Nonexi04; | |
9418 | } | |
9419 | } | |
9420 | <END_MODULE> | |
9421 | <RESULT IF_PASS COUNT 1> | |
9422 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9423 | <END_RESULT> | |
9424 | <RESULT IF_PASS COUNT 1> | |
9425 | (?is)\berror: | |
9426 | <END_RESULT> | |
9427 | <RESULT IF_PASS POSITIVE> | |
9428 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9429 | <END_RESULT> | |
9430 | <END_TC> | |
9431 | :exmp. | |
9432 | ||
9433 | .*---------------------------------------------------------------------* | |
9434 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp->ToClause2 | |
9435 | .*---------------------------------------------------------------------* | |
9436 | :xmp tab=0. | |
9437 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->SendStatement->PortSendOp->ToClause2> | |
9438 | <COMPILE> | |
9439 | <VERDICT_LEAF PASS> | |
9440 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9441 | // The followings are already covered: | |
9442 | // receive, trigger, getcall, getreply, catch, check | |
9443 | module ModuleA { | |
9444 | type port MyPortType message{ | |
9445 | inout integer; | |
9446 | } | |
9447 | type component MyComp { | |
9448 | port MyPortType MyPort; | |
9449 | port MyPortType MyPort2[10]; | |
9450 | } | |
9451 | function MyFunc1() runs on MyComp { | |
9452 | MyPort.send(10) to Nonexi05(); | |
9453 | } | |
9454 | } | |
9455 | <END_MODULE> | |
9456 | <RESULT IF_PASS COUNT 1> | |
9457 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9458 | <END_RESULT> | |
9459 | <RESULT IF_PASS COUNT 1> | |
9460 | (?is)\berror: | |
9461 | <END_RESULT> | |
9462 | <RESULT IF_PASS POSITIVE> | |
9463 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9464 | <END_RESULT> | |
9465 | <END_TC> | |
9466 | :exmp. | |
9467 | ||
9468 | .*---------------------------------------------------------------------* | |
9469 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->Port->Identifier | |
9470 | .*---------------------------------------------------------------------* | |
9471 | :xmp tab=0. | |
9472 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->Port->Identifier> | |
9473 | <COMPILE> | |
9474 | <VERDICT_LEAF PASS> | |
9475 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9476 | module ModuleA { | |
9477 | type port MyPortType2 procedure { | |
9478 | out MySignature_noblock, MySignature_block, | |
9479 | MySignature_return, MySignature_exception | |
9480 | } | |
9481 | type component MyComp { | |
9482 | port MyPortType2 MyPort3; | |
9483 | port MyPortType2 MyPort4[10] | |
9484 | } | |
9485 | signature MySignature_block(in integer Par1); | |
9486 | signature MySignature_noblock(in integer Par1) noblock; | |
9487 | signature MySignature_return(in integer Par1) return integer; | |
9488 | signature MySignature_exception(in integer Par1) return integer | |
9489 | exception (integer, float); | |
9490 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9491 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9492 | function MyFunc2() runs on MyComp { | |
9493 | // CallStatement->Port->Identifier | |
9494 | // TR 618: calling a noblocking signature without reply-part causes parse error | |
9495 | Nonexi06.call(MyTemplateSig(1)); | |
9496 | } | |
9497 | } | |
9498 | <END_MODULE> | |
9499 | <RESULT IF_PASS COUNT 1> | |
9500 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9501 | <END_RESULT> | |
9502 | <RESULT IF_PASS COUNT 1> | |
9503 | (?is)\berror: | |
9504 | <END_RESULT> | |
9505 | <RESULT IF_PASS POSITIVE> | |
9506 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9507 | <END_RESULT> | |
9508 | <END_TC> | |
9509 | :exmp. | |
9510 | ||
9511 | .*---------------------------------------------------------------------* | |
9512 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->Port->ArrayOrBitRef | |
9513 | .*---------------------------------------------------------------------* | |
9514 | :xmp tab=0. | |
9515 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->Port->ArrayOrBitRef> | |
9516 | <COMPILE> | |
9517 | <VERDICT_LEAF PASS> | |
9518 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9519 | module ModuleA { | |
9520 | type port MyPortType2 procedure { | |
9521 | out MySignature_noblock, MySignature_block, | |
9522 | MySignature_return, MySignature_exception | |
9523 | } | |
9524 | type component MyComp { | |
9525 | port MyPortType2 MyPort3; | |
9526 | port MyPortType2 MyPort4[10] | |
9527 | } | |
9528 | signature MySignature_block(in integer Par1); | |
9529 | signature MySignature_noblock(in integer Par1) noblock; | |
9530 | signature MySignature_return(in integer Par1) return integer; | |
9531 | signature MySignature_exception(in integer Par1) return integer | |
9532 | exception (integer, float); | |
9533 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9534 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9535 | function MyFunc2() runs on MyComp { | |
9536 | MyPort4[333+Nonexi07].call(MyTemplateSig(1)); | |
9537 | } | |
9538 | } | |
9539 | <END_MODULE> | |
9540 | <RESULT IF_PASS COUNT 1> | |
9541 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9542 | <END_RESULT> | |
9543 | <RESULT IF_PASS COUNT 1> | |
9544 | (?is)\berror: | |
9545 | <END_RESULT> | |
9546 | <RESULT IF_PASS POSITIVE> | |
9547 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9548 | <END_RESULT> | |
9549 | <END_TC> | |
9550 | :exmp. | |
9551 | ||
9552 | .*---------------------------------------------------------------------* | |
9553 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->CallParameters | |
9554 | .*---------------------------------------------------------------------* | |
9555 | :xmp tab=0. | |
9556 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->CallParameters> | |
9557 | <COMPILE> | |
9558 | <VERDICT_LEAF PASS> | |
9559 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9560 | module ModuleA { | |
9561 | type port MyPortType2 procedure { | |
9562 | out MySignature_noblock, MySignature_block, | |
9563 | MySignature_return, MySignature_exception | |
9564 | } | |
9565 | type component MyComp { | |
9566 | port MyPortType2 MyPort3; | |
9567 | port MyPortType2 MyPort4[10] | |
9568 | } | |
9569 | signature MySignature_block(in integer Par1); | |
9570 | signature MySignature_noblock(in integer Par1) noblock; | |
9571 | signature MySignature_return(in integer Par1) return integer; | |
9572 | signature MySignature_exception(in integer Par1) return integer | |
9573 | exception (integer, float); | |
9574 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9575 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9576 | function MyFunc2() runs on MyComp { | |
9577 | // others are covered in TemplateInstance | |
9578 | // TR 681: unnecessary checks for signatures in call operation in case of fault | |
9579 | MyPort3.call(Nonexi10); | |
9580 | } | |
9581 | } | |
9582 | <END_MODULE> | |
9583 | <RESULT IF_PASS COUNT 1> | |
9584 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9585 | <END_RESULT> | |
9586 | <RESULT IF_PASS COUNT 1> | |
9587 | (?is)\berror: | |
9588 | <END_RESULT> | |
9589 | <RESULT IF_PASS POSITIVE> | |
9590 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9591 | <END_RESULT> | |
9592 | <END_TC> | |
9593 | :exmp. | |
9594 | ||
9595 | .*---------------------------------------------------------------------* | |
9596 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->ToClause1 | |
9597 | .*---------------------------------------------------------------------* | |
9598 | :xmp tab=0. | |
9599 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->ToClause1> | |
9600 | <COMPILE> | |
9601 | <VERDICT_LEAF PASS> | |
9602 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9603 | module ModuleA { | |
9604 | type port MyPortType2 procedure { | |
9605 | out MySignature_noblock, MySignature_block, | |
9606 | MySignature_return, MySignature_exception | |
9607 | } | |
9608 | type component MyComp { | |
9609 | port MyPortType2 MyPort3; | |
9610 | port MyPortType2 MyPort4[10] | |
9611 | } | |
9612 | signature MySignature_block(in integer Par1); | |
9613 | signature MySignature_noblock(in integer Par1) noblock; | |
9614 | signature MySignature_return(in integer Par1) return integer; | |
9615 | signature MySignature_exception(in integer Par1) return integer | |
9616 | exception (integer, float); | |
9617 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9618 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9619 | function MyFunc2() runs on MyComp { | |
9620 | MyPort3.call(MyTemplateSig(1)) to Nonexi11; | |
9621 | } | |
9622 | } | |
9623 | <END_MODULE> | |
9624 | <RESULT IF_PASS COUNT 1> | |
9625 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9626 | <END_RESULT> | |
9627 | <RESULT IF_PASS COUNT 1> | |
9628 | (?is)\berror: | |
9629 | <END_RESULT> | |
9630 | <RESULT IF_PASS POSITIVE> | |
9631 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9632 | <END_RESULT> | |
9633 | <END_TC> | |
9634 | :exmp. | |
9635 | ||
9636 | .*---------------------------------------------------------------------* | |
9637 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->ToClause2 | |
9638 | .*---------------------------------------------------------------------* | |
9639 | :xmp tab=0. | |
9640 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->CallStatement->PortCallOp->ToClause2> | |
9641 | <COMPILE> | |
9642 | <VERDICT_LEAF PASS> | |
9643 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9644 | module ModuleA { | |
9645 | type port MyPortType2 procedure { | |
9646 | out MySignature_noblock, MySignature_block, | |
9647 | MySignature_return, MySignature_exception | |
9648 | } | |
9649 | type component MyComp { | |
9650 | port MyPortType2 MyPort3; | |
9651 | port MyPortType2 MyPort4[10] | |
9652 | } | |
9653 | signature MySignature_block(in integer Par1); | |
9654 | signature MySignature_noblock(in integer Par1) noblock; | |
9655 | signature MySignature_return(in integer Par1) return integer; | |
9656 | signature MySignature_exception(in integer Par1) return integer | |
9657 | exception (integer, float); | |
9658 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9659 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9660 | function MyFunc2() runs on MyComp { | |
9661 | MyPort3.call(MyTemplateSig(1)) to Nonexi12(); | |
9662 | } | |
9663 | } | |
9664 | <END_MODULE> | |
9665 | <RESULT IF_PASS COUNT 1> | |
9666 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9667 | <END_RESULT> | |
9668 | <RESULT IF_PASS COUNT 1> | |
9669 | (?is)\berror: | |
9670 | <END_RESULT> | |
9671 | <RESULT IF_PASS POSITIVE> | |
9672 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9673 | <END_RESULT> | |
9674 | <END_TC> | |
9675 | :exmp. | |
9676 | ||
9677 | .*---------------------------------------------------------------------* | |
9678 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->Port->Identifier | |
9679 | .*---------------------------------------------------------------------* | |
9680 | :xmp tab=0. | |
9681 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->Port->Identifier> | |
9682 | <COMPILE> | |
9683 | <VERDICT_LEAF PASS> | |
9684 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9685 | module ModuleA { | |
9686 | type port MyPortType2 procedure { | |
9687 | out MySignature_noblock, MySignature_block, | |
9688 | MySignature_return, MySignature_exception | |
9689 | } | |
9690 | type component MyComp { | |
9691 | port MyPortType2 MyPort3; | |
9692 | port MyPortType2 MyPort4[10] | |
9693 | } | |
9694 | signature MySignature_block(in integer Par1); | |
9695 | signature MySignature_noblock(in integer Par1) noblock; | |
9696 | signature MySignature_return(in integer Par1) return integer; | |
9697 | signature MySignature_exception(in integer Par1) return integer | |
9698 | exception (integer, float); | |
9699 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9700 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9701 | function MyFunc3() runs on MyComp { | |
9702 | Nonexi13.reply(MyTemplateSig2(1)); | |
9703 | } | |
9704 | } | |
9705 | <END_MODULE> | |
9706 | <RESULT IF_PASS COUNT 1> | |
9707 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9708 | <END_RESULT> | |
9709 | <RESULT IF_PASS COUNT 1> | |
9710 | (?is)\berror: | |
9711 | <END_RESULT> | |
9712 | <RESULT IF_PASS POSITIVE> | |
9713 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9714 | <END_RESULT> | |
9715 | <END_TC> | |
9716 | :exmp. | |
9717 | ||
9718 | .*---------------------------------------------------------------------* | |
9719 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->Port->ArrayOrBitRef | |
9720 | .*---------------------------------------------------------------------* | |
9721 | :xmp tab=0. | |
9722 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->Port->ArrayOrBitRef> | |
9723 | <COMPILE> | |
9724 | <VERDICT_LEAF PASS> | |
9725 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9726 | module ModuleA { | |
9727 | type port MyPortType2 procedure { | |
9728 | inout MySignature_noblock, MySignature_block, | |
9729 | MySignature_return, MySignature_exception | |
9730 | } | |
9731 | type component MyComp { | |
9732 | port MyPortType2 MyPort3; | |
9733 | port MyPortType2 MyPort4[10] | |
9734 | } | |
9735 | signature MySignature_block(in integer Par1); | |
9736 | signature MySignature_noblock(in integer Par1) noblock; | |
9737 | signature MySignature_return(in integer Par1) return integer; | |
9738 | signature MySignature_exception(in integer Par1) return integer | |
9739 | exception (integer, float); | |
9740 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9741 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9742 | function MyFunc3() runs on MyComp { | |
9743 | MyPort4[333+Nonexi14].reply(MyTemplateSig2(1)); | |
9744 | } | |
9745 | } | |
9746 | <END_MODULE> | |
9747 | <RESULT IF_PASS COUNT 1> | |
9748 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9749 | <END_RESULT> | |
9750 | <RESULT IF_PASS COUNT 1> | |
9751 | (?is)\berror: | |
9752 | <END_RESULT> | |
9753 | <RESULT IF_PASS POSITIVE> | |
9754 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9755 | <END_RESULT> | |
9756 | <END_TC> | |
9757 | :exmp. | |
9758 | ||
9759 | .*---------------------------------------------------------------------* | |
9760 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->CallParameters | |
9761 | .*---------------------------------------------------------------------* | |
9762 | :xmp tab=0. | |
9763 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->CallParameters> | |
9764 | <COMPILE> | |
9765 | <VERDICT_LEAF PASS> | |
9766 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9767 | module ModuleA { | |
9768 | type port MyPortType2 procedure { | |
9769 | inout MySignature_noblock, MySignature_block, | |
9770 | MySignature_return, MySignature_exception | |
9771 | } | |
9772 | type component MyComp { | |
9773 | port MyPortType2 MyPort3; | |
9774 | port MyPortType2 MyPort4[10] | |
9775 | } | |
9776 | signature MySignature_block(in integer Par1); | |
9777 | signature MySignature_noblock(in integer Par1) noblock; | |
9778 | signature MySignature_return(in integer Par1) return integer; | |
9779 | signature MySignature_exception(in integer Par1) return integer | |
9780 | exception (integer, float); | |
9781 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9782 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9783 | function MyFunc3() runs on MyComp { | |
9784 | MyPort3.reply(Nonexi16); | |
9785 | } | |
9786 | } | |
9787 | <END_MODULE> | |
9788 | <RESULT IF_PASS COUNT 1> | |
9789 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9790 | <END_RESULT> | |
9791 | <RESULT IF_PASS COUNT 1> | |
9792 | (?is)\berror: | |
9793 | <END_RESULT> | |
9794 | <RESULT IF_PASS POSITIVE> | |
9795 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9796 | <END_RESULT> | |
9797 | <END_TC> | |
9798 | :exmp. | |
9799 | ||
9800 | .*---------------------------------------------------------------------* | |
9801 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ReplyValue | |
9802 | .*---------------------------------------------------------------------* | |
9803 | :xmp tab=0. | |
9804 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ReplyValue> | |
9805 | <COMPILE> | |
9806 | <VERDICT_LEAF PASS> | |
9807 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9808 | module ModuleA { | |
9809 | type port MyPortType2 procedure { | |
9810 | inout MySignature_noblock, MySignature_block, | |
9811 | MySignature_return, MySignature_exception | |
9812 | } | |
9813 | type component MyComp { | |
9814 | port MyPortType2 MyPort3; | |
9815 | port MyPortType2 MyPort4[10] | |
9816 | } | |
9817 | signature MySignature_block(in integer Par1); | |
9818 | signature MySignature_noblock(in integer Par1) noblock; | |
9819 | signature MySignature_return(in integer Par1) return integer; | |
9820 | signature MySignature_exception(in integer Par1) return integer | |
9821 | exception (integer, float); | |
9822 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9823 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9824 | template MySignature_return MyTemplateSig3(in integer Par) := { Par1 := Par } | |
9825 | function MyFunc3() runs on MyComp { | |
9826 | MyPort3.reply(MyTemplateSig3(1) value 333-Nonexi17); | |
9827 | } | |
9828 | } | |
9829 | <END_MODULE> | |
9830 | <RESULT IF_PASS COUNT 1> | |
9831 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9832 | <END_RESULT> | |
9833 | <RESULT IF_PASS COUNT 1> | |
9834 | (?is)\berror: | |
9835 | <END_RESULT> | |
9836 | <RESULT IF_PASS POSITIVE> | |
9837 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9838 | <END_RESULT> | |
9839 | <END_TC> | |
9840 | :exmp. | |
9841 | ||
9842 | .*---------------------------------------------------------------------* | |
9843 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ToClause1 | |
9844 | .*---------------------------------------------------------------------* | |
9845 | :xmp tab=0. | |
9846 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ToClause1> | |
9847 | <COMPILE> | |
9848 | <VERDICT_LEAF PASS> | |
9849 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9850 | module ModuleA { | |
9851 | type port MyPortType2 procedure { | |
9852 | inout MySignature_noblock, MySignature_block, | |
9853 | MySignature_return, MySignature_exception | |
9854 | } | |
9855 | type component MyComp { | |
9856 | port MyPortType2 MyPort3; | |
9857 | port MyPortType2 MyPort4[10] | |
9858 | } | |
9859 | signature MySignature_block(in integer Par1); | |
9860 | signature MySignature_noblock(in integer Par1) noblock; | |
9861 | signature MySignature_return(in integer Par1) return integer; | |
9862 | signature MySignature_exception(in integer Par1) return integer | |
9863 | exception (integer, float); | |
9864 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9865 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9866 | function MyFunc3() runs on MyComp { | |
9867 | MyPort3.reply(MyTemplateSig2(1)) to Nonexi18; | |
9868 | } | |
9869 | } | |
9870 | <END_MODULE> | |
9871 | <RESULT IF_PASS COUNT 1> | |
9872 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9873 | <END_RESULT> | |
9874 | <RESULT IF_PASS COUNT 1> | |
9875 | (?is)\berror: | |
9876 | <END_RESULT> | |
9877 | <RESULT IF_PASS POSITIVE> | |
9878 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9879 | <END_RESULT> | |
9880 | <END_TC> | |
9881 | :exmp. | |
9882 | ||
9883 | .*---------------------------------------------------------------------* | |
9884 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ToClause2 | |
9885 | .*---------------------------------------------------------------------* | |
9886 | :xmp tab=0. | |
9887 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ReplyStatement->PortReplyOp->ToClause2> | |
9888 | <COMPILE> | |
9889 | <VERDICT_LEAF PASS> | |
9890 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9891 | module ModuleA { | |
9892 | type port MyPortType2 procedure { | |
9893 | inout MySignature_noblock, MySignature_block, | |
9894 | MySignature_return, MySignature_exception | |
9895 | } | |
9896 | type component MyComp { | |
9897 | port MyPortType2 MyPort3; | |
9898 | port MyPortType2 MyPort4[10] | |
9899 | } | |
9900 | signature MySignature_block(in integer Par1); | |
9901 | signature MySignature_noblock(in integer Par1) noblock; | |
9902 | signature MySignature_return(in integer Par1) return integer; | |
9903 | signature MySignature_exception(in integer Par1) return integer | |
9904 | exception (integer, float); | |
9905 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9906 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9907 | function MyFunc3() runs on MyComp { | |
9908 | MyPort3.reply(MyTemplateSig2(1)) to Nonexi19(); | |
9909 | } | |
9910 | } | |
9911 | <END_MODULE> | |
9912 | <RESULT IF_PASS COUNT 1> | |
9913 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9914 | <END_RESULT> | |
9915 | <RESULT IF_PASS COUNT 1> | |
9916 | (?is)\berror: | |
9917 | <END_RESULT> | |
9918 | <RESULT IF_PASS POSITIVE> | |
9919 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9920 | <END_RESULT> | |
9921 | <END_TC> | |
9922 | :exmp. | |
9923 | ||
9924 | .*---------------------------------------------------------------------* | |
9925 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->Identifier | |
9926 | .*---------------------------------------------------------------------* | |
9927 | :xmp tab=0. | |
9928 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->Identifier> | |
9929 | <COMPILE> | |
9930 | <VERDICT_LEAF PASS> | |
9931 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9932 | module ModuleA { | |
9933 | type port MyPortType2 procedure { | |
9934 | out MySignature_noblock, MySignature_block, | |
9935 | MySignature_return, MySignature_exception | |
9936 | } | |
9937 | type component MyComp { | |
9938 | port MyPortType2 MyPort3; | |
9939 | port MyPortType2 MyPort4[10] | |
9940 | } | |
9941 | signature MySignature_block(in integer Par1); | |
9942 | signature MySignature_noblock(in integer Par1) noblock; | |
9943 | signature MySignature_return(in integer Par1) return integer; | |
9944 | signature MySignature_exception(in integer Par1) return integer | |
9945 | exception (integer, float); | |
9946 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9947 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9948 | function MyFunc4() runs on MyComp { | |
9949 | Nonexi20.raise(MySignature_exception, 10); | |
9950 | } | |
9951 | } | |
9952 | <END_MODULE> | |
9953 | <RESULT IF_PASS COUNT 1> | |
9954 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9955 | <END_RESULT> | |
9956 | <RESULT IF_PASS COUNT 1> | |
9957 | (?is)\berror: | |
9958 | <END_RESULT> | |
9959 | <RESULT IF_PASS POSITIVE> | |
9960 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
9961 | <END_RESULT> | |
9962 | <END_TC> | |
9963 | :exmp. | |
9964 | ||
9965 | .*---------------------------------------------------------------------* | |
9966 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ArrayOrBitRef | |
9967 | .*---------------------------------------------------------------------* | |
9968 | :xmp tab=0. | |
9969 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ArrayOrBitRef> | |
9970 | <COMPILE> | |
9971 | <VERDICT_LEAF PASS> | |
9972 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
9973 | module ModuleA { | |
9974 | type port MyPortType2 procedure { | |
9975 | inout MySignature_noblock, MySignature_block, | |
9976 | MySignature_return, MySignature_exception | |
9977 | } | |
9978 | type component MyComp { | |
9979 | port MyPortType2 MyPort3; | |
9980 | port MyPortType2 MyPort4[10] | |
9981 | } | |
9982 | signature MySignature_block(in integer Par1); | |
9983 | signature MySignature_noblock(in integer Par1) noblock; | |
9984 | signature MySignature_return(in integer Par1) return integer; | |
9985 | signature MySignature_exception(in integer Par1) return integer | |
9986 | exception (integer, float); | |
9987 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
9988 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
9989 | function MyFunc4() runs on MyComp { | |
9990 | MyPort4[333+Nonexi21].raise(MySignature_exception, 10); | |
9991 | } | |
9992 | } | |
9993 | <END_MODULE> | |
9994 | <RESULT IF_PASS COUNT 1> | |
9995 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
9996 | <END_RESULT> | |
9997 | <RESULT IF_PASS COUNT 1> | |
9998 | (?is)\berror: | |
9999 | <END_RESULT> | |
10000 | <RESULT IF_PASS POSITIVE> | |
10001 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10002 | <END_RESULT> | |
10003 | <END_TC> | |
10004 | :exmp. | |
10005 | ||
10006 | .*---------------------------------------------------------------------* | |
10007 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->Signature | |
10008 | .*---------------------------------------------------------------------* | |
10009 | :xmp tab=0. | |
10010 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->Signature> | |
10011 | <COMPILE> | |
10012 | <VERDICT_LEAF PASS> | |
10013 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10014 | module ModuleA { | |
10015 | type port MyPortType2 procedure { | |
10016 | inout MySignature_noblock, MySignature_block, | |
10017 | MySignature_return, MySignature_exception | |
10018 | } | |
10019 | type component MyComp { | |
10020 | port MyPortType2 MyPort3; | |
10021 | port MyPortType2 MyPort4[10] | |
10022 | } | |
10023 | signature MySignature_block(in integer Par1); | |
10024 | signature MySignature_noblock(in integer Par1) noblock; | |
10025 | signature MySignature_return(in integer Par1) return integer; | |
10026 | signature MySignature_exception(in integer Par1) return integer | |
10027 | exception (integer, float); | |
10028 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10029 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10030 | function MyFunc4() runs on MyComp { | |
10031 | MyPort3.raise(Nonexi22, 10); | |
10032 | } | |
10033 | } | |
10034 | <END_MODULE> | |
10035 | <RESULT IF_PASS COUNT 1> | |
10036 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10037 | <END_RESULT> | |
10038 | <RESULT IF_PASS COUNT 1> | |
10039 | (?is)\berror: | |
10040 | <END_RESULT> | |
10041 | <RESULT IF_PASS POSITIVE> | |
10042 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10043 | <END_RESULT> | |
10044 | <END_TC> | |
10045 | :exmp. | |
10046 | ||
10047 | .*---------------------------------------------------------------------* | |
10048 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->TemplateInstance | |
10049 | .*---------------------------------------------------------------------* | |
10050 | :xmp tab=0. | |
10051 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->TemplateInstance> | |
10052 | <COMPILE> | |
10053 | <VERDICT_LEAF PASS> | |
10054 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10055 | module ModuleA { | |
10056 | type port MyPortType2 procedure { | |
10057 | inout MySignature_noblock, MySignature_block, | |
10058 | MySignature_return, MySignature_exception | |
10059 | } | |
10060 | type component MyComp { | |
10061 | port MyPortType2 MyPort3; | |
10062 | port MyPortType2 MyPort4[10] | |
10063 | } | |
10064 | signature MySignature_block(in integer Par1); | |
10065 | signature MySignature_noblock(in integer Par1) noblock; | |
10066 | signature MySignature_return(in integer Par1) return integer; | |
10067 | signature MySignature_exception(in integer Par1) return integer | |
10068 | exception (integer, float); | |
10069 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10070 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10071 | function MyFunc4() runs on MyComp { | |
10072 | MyPort3.raise(MySignature_exception, 10 - Nonexi26); | |
10073 | } | |
10074 | } | |
10075 | <END_MODULE> | |
10076 | <RESULT IF_PASS COUNT 1> | |
10077 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10078 | <END_RESULT> | |
10079 | <RESULT IF_PASS COUNT 1> | |
10080 | (?is)\berror: | |
10081 | <END_RESULT> | |
10082 | <RESULT IF_PASS POSITIVE> | |
10083 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10084 | <END_RESULT> | |
10085 | <END_TC> | |
10086 | :exmp. | |
10087 | ||
10088 | .*---------------------------------------------------------------------* | |
10089 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ToClause1 | |
10090 | .*---------------------------------------------------------------------* | |
10091 | :xmp tab=0. | |
10092 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ToClause1> | |
10093 | <COMPILE> | |
10094 | <VERDICT_LEAF PASS> | |
10095 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10096 | module ModuleA { | |
10097 | type port MyPortType2 procedure { | |
10098 | inout MySignature_noblock, MySignature_block, | |
10099 | MySignature_return, MySignature_exception | |
10100 | } | |
10101 | type component MyComp { | |
10102 | port MyPortType2 MyPort3; | |
10103 | port MyPortType2 MyPort4[10] | |
10104 | } | |
10105 | signature MySignature_block(in integer Par1); | |
10106 | signature MySignature_noblock(in integer Par1) noblock; | |
10107 | signature MySignature_return(in integer Par1) return integer; | |
10108 | signature MySignature_exception(in integer Par1) return integer | |
10109 | exception (integer, float); | |
10110 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10111 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10112 | function MyFunc4() runs on MyComp { | |
10113 | MyPort3.raise(MySignature_exception, 10) to Nonexi27; | |
10114 | } | |
10115 | } | |
10116 | <END_MODULE> | |
10117 | <RESULT IF_PASS COUNT 1> | |
10118 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10119 | <END_RESULT> | |
10120 | <RESULT IF_PASS COUNT 1> | |
10121 | (?is)\berror: | |
10122 | <END_RESULT> | |
10123 | <RESULT IF_PASS POSITIVE> | |
10124 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10125 | <END_RESULT> | |
10126 | <END_TC> | |
10127 | :exmp. | |
10128 | ||
10129 | .*---------------------------------------------------------------------* | |
10130 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ToClause2 | |
10131 | .*---------------------------------------------------------------------* | |
10132 | :xmp tab=0. | |
10133 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->RaiseStatement->Port->ToClause2> | |
10134 | <COMPILE> | |
10135 | <VERDICT_LEAF PASS> | |
10136 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10137 | module ModuleA { | |
10138 | type port MyPortType2 procedure { | |
10139 | inout MySignature_noblock, MySignature_block, | |
10140 | MySignature_return, MySignature_exception | |
10141 | } | |
10142 | type component MyComp { | |
10143 | port MyPortType2 MyPort3; | |
10144 | port MyPortType2 MyPort4[10] | |
10145 | } | |
10146 | signature MySignature_block(in integer Par1); | |
10147 | signature MySignature_noblock(in integer Par1) noblock; | |
10148 | signature MySignature_return(in integer Par1) return integer; | |
10149 | signature MySignature_exception(in integer Par1) return integer | |
10150 | exception (integer, float); | |
10151 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10152 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10153 | function MyFunc4() runs on MyComp { | |
10154 | MyPort3.raise(MySignature_exception, 10) to Nonexi28(); | |
10155 | } | |
10156 | } | |
10157 | <END_MODULE> | |
10158 | <RESULT IF_PASS COUNT 1> | |
10159 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10160 | <END_RESULT> | |
10161 | <RESULT IF_PASS COUNT 1> | |
10162 | (?is)\berror: | |
10163 | <END_RESULT> | |
10164 | <RESULT IF_PASS POSITIVE> | |
10165 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10166 | <END_RESULT> | |
10167 | <END_TC> | |
10168 | :exmp. | |
10169 | ||
10170 | .*---------------------------------------------------------------------* | |
10171 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ClearStatement->Port->Identifier | |
10172 | .*---------------------------------------------------------------------* | |
10173 | :xmp tab=0. | |
10174 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ClearStatement->Port->Identifier> | |
10175 | <COMPILE> | |
10176 | <VERDICT_LEAF PASS> | |
10177 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10178 | module ModuleA { | |
10179 | type port MyPortType2 procedure { | |
10180 | out MySignature_noblock, MySignature_block, | |
10181 | MySignature_return, MySignature_exception | |
10182 | } | |
10183 | type component MyComp { | |
10184 | port MyPortType2 MyPort3; | |
10185 | port MyPortType2 MyPort4[10] | |
10186 | } | |
10187 | signature MySignature_block(in integer Par1); | |
10188 | signature MySignature_noblock(in integer Par1) noblock; | |
10189 | signature MySignature_return(in integer Par1) return integer; | |
10190 | signature MySignature_exception(in integer Par1) return integer | |
10191 | exception (integer, float); | |
10192 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10193 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10194 | function MyFunc5() runs on MyComp { | |
10195 | Nonexi29.clear; | |
10196 | } | |
10197 | } | |
10198 | <END_MODULE> | |
10199 | <RESULT IF_PASS COUNT 1> | |
10200 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10201 | <END_RESULT> | |
10202 | <RESULT IF_PASS COUNT 1> | |
10203 | (?is)\berror: | |
10204 | <END_RESULT> | |
10205 | <RESULT IF_PASS POSITIVE> | |
10206 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10207 | <END_RESULT> | |
10208 | <END_TC> | |
10209 | :exmp. | |
10210 | ||
10211 | .*---------------------------------------------------------------------* | |
10212 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ClearStatement->Port->ArrayOrBitRef | |
10213 | .*---------------------------------------------------------------------* | |
10214 | :xmp tab=0. | |
10215 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->ClearStatement->Port->ArrayOrBitRef> | |
10216 | <COMPILE> | |
10217 | <VERDICT_LEAF PASS> | |
10218 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10219 | module ModuleA { | |
10220 | type port MyPortType2 procedure { | |
10221 | out MySignature_noblock, MySignature_block, | |
10222 | MySignature_return, MySignature_exception | |
10223 | } | |
10224 | type component MyComp { | |
10225 | port MyPortType2 MyPort3; | |
10226 | port MyPortType2 MyPort4[10] | |
10227 | } | |
10228 | signature MySignature_block(in integer Par1); | |
10229 | signature MySignature_noblock(in integer Par1) noblock; | |
10230 | signature MySignature_return(in integer Par1) return integer; | |
10231 | signature MySignature_exception(in integer Par1) return integer | |
10232 | exception (integer, float); | |
10233 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10234 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10235 | function MyFunc5() runs on MyComp { | |
10236 | MyPort4[333+Nonexi30].clear; | |
10237 | } | |
10238 | } | |
10239 | <END_MODULE> | |
10240 | <RESULT IF_PASS COUNT 1> | |
10241 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10242 | <END_RESULT> | |
10243 | <RESULT IF_PASS COUNT 1> | |
10244 | (?is)\berror: | |
10245 | <END_RESULT> | |
10246 | <RESULT IF_PASS POSITIVE> | |
10247 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10248 | <END_RESULT> | |
10249 | <END_TC> | |
10250 | :exmp. | |
10251 | ||
10252 | .*---------------------------------------------------------------------* | |
10253 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StartStatement->Port->Identifier | |
10254 | .*---------------------------------------------------------------------* | |
10255 | :xmp tab=0. | |
10256 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StartStatement->Port->Identifier> | |
10257 | <COMPILE> | |
10258 | <VERDICT_LEAF PASS> | |
10259 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10260 | module ModuleA { | |
10261 | type port MyPortType2 procedure { | |
10262 | out MySignature_noblock, MySignature_block, | |
10263 | MySignature_return, MySignature_exception | |
10264 | } | |
10265 | type component MyComp { | |
10266 | port MyPortType2 MyPort3; | |
10267 | port MyPortType2 MyPort4[10] | |
10268 | } | |
10269 | signature MySignature_block(in integer Par1); | |
10270 | signature MySignature_noblock(in integer Par1) noblock; | |
10271 | signature MySignature_return(in integer Par1) return integer; | |
10272 | signature MySignature_exception(in integer Par1) return integer | |
10273 | exception (integer, float); | |
10274 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10275 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10276 | function MyFunc6() runs on MyComp { | |
10277 | Nonexi31.start; | |
10278 | } | |
10279 | } | |
10280 | <END_MODULE> | |
10281 | <RESULT IF_PASS COUNT 1> | |
10282 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10283 | <END_RESULT> | |
10284 | <RESULT IF_PASS COUNT 1> | |
10285 | (?is)\berror: | |
10286 | <END_RESULT> | |
10287 | <RESULT IF_PASS POSITIVE> | |
10288 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10289 | <END_RESULT> | |
10290 | <END_TC> | |
10291 | :exmp. | |
10292 | ||
10293 | .*---------------------------------------------------------------------* | |
10294 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StartStatement->Port->ArrayOrBitRef | |
10295 | .*---------------------------------------------------------------------* | |
10296 | :xmp tab=0. | |
10297 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StartStatement->Port->ArrayOrBitRef> | |
10298 | <COMPILE> | |
10299 | <VERDICT_LEAF PASS> | |
10300 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10301 | module ModuleA { | |
10302 | type port MyPortType2 procedure { | |
10303 | out MySignature_noblock, MySignature_block, | |
10304 | MySignature_return, MySignature_exception | |
10305 | } | |
10306 | type component MyComp { | |
10307 | port MyPortType2 MyPort3; | |
10308 | port MyPortType2 MyPort4[10] | |
10309 | } | |
10310 | signature MySignature_block(in integer Par1); | |
10311 | signature MySignature_noblock(in integer Par1) noblock; | |
10312 | signature MySignature_return(in integer Par1) return integer; | |
10313 | signature MySignature_exception(in integer Par1) return integer | |
10314 | exception (integer, float); | |
10315 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10316 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10317 | function MyFunc5() runs on MyComp { | |
10318 | MyPort4[333+Nonexi32].start; | |
10319 | } | |
10320 | } | |
10321 | <END_MODULE> | |
10322 | <RESULT IF_PASS COUNT 1> | |
10323 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10324 | <END_RESULT> | |
10325 | <RESULT IF_PASS COUNT 1> | |
10326 | (?is)\berror: | |
10327 | <END_RESULT> | |
10328 | <RESULT IF_PASS POSITIVE> | |
10329 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10330 | <END_RESULT> | |
10331 | <END_TC> | |
10332 | :exmp. | |
10333 | ||
10334 | .*---------------------------------------------------------------------* | |
10335 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StopStatement->Port->Identifier | |
10336 | .*---------------------------------------------------------------------* | |
10337 | :xmp tab=0. | |
10338 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StopStatement->Port->Identifier> | |
10339 | <COMPILE> | |
10340 | <VERDICT_LEAF PASS> | |
10341 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10342 | module ModuleA { | |
10343 | type port MyPortType2 procedure { | |
10344 | out MySignature_noblock, MySignature_block, | |
10345 | MySignature_return, MySignature_exception | |
10346 | } | |
10347 | type component MyComp { | |
10348 | port MyPortType2 MyPort3; | |
10349 | port MyPortType2 MyPort4[10] | |
10350 | } | |
10351 | signature MySignature_block(in integer Par1); | |
10352 | signature MySignature_noblock(in integer Par1) noblock; | |
10353 | signature MySignature_return(in integer Par1) return integer; | |
10354 | signature MySignature_exception(in integer Par1) return integer | |
10355 | exception (integer, float); | |
10356 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10357 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10358 | function MyFunc6() runs on MyComp { | |
10359 | Nonexi31.stop; | |
10360 | } | |
10361 | } | |
10362 | <END_MODULE> | |
10363 | <RESULT IF_PASS COUNT 1> | |
10364 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10365 | <END_RESULT> | |
10366 | <RESULT IF_PASS COUNT 1> | |
10367 | (?is)\berror: | |
10368 | <END_RESULT> | |
10369 | <RESULT IF_PASS POSITIVE> | |
10370 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10371 | <END_RESULT> | |
10372 | <END_TC> | |
10373 | :exmp. | |
10374 | ||
10375 | .*---------------------------------------------------------------------* | |
10376 | :h3.TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StopStatement->Port->ArrayOrBitRef | |
10377 | .*---------------------------------------------------------------------* | |
10378 | :xmp tab=0. | |
10379 | <TC - TTCN-3::StatementBlock->FunctionStatement->CommunicationStatements->StopStatement->Port->ArrayOrBitRef> | |
10380 | <COMPILE> | |
10381 | <VERDICT_LEAF PASS> | |
10382 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10383 | module ModuleA { | |
10384 | type port MyPortType2 procedure { | |
10385 | out MySignature_noblock, MySignature_block, | |
10386 | MySignature_return, MySignature_exception | |
10387 | } | |
10388 | type component MyComp { | |
10389 | port MyPortType2 MyPort3; | |
10390 | port MyPortType2 MyPort4[10] | |
10391 | } | |
10392 | signature MySignature_block(in integer Par1); | |
10393 | signature MySignature_noblock(in integer Par1) noblock; | |
10394 | signature MySignature_return(in integer Par1) return integer; | |
10395 | signature MySignature_exception(in integer Par1) return integer | |
10396 | exception (integer, float); | |
10397 | template MySignature_noblock MyTemplateSig(in integer Par) := { Par1:=Par } | |
10398 | template MySignature_block MyTemplateSig2(in integer Par) := { - } | |
10399 | function MyFunc5() runs on MyComp { | |
10400 | MyPort4[333+Nonexi32].stop; | |
10401 | } | |
10402 | } | |
10403 | <END_MODULE> | |
10404 | <RESULT IF_PASS COUNT 1> | |
10405 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10406 | <END_RESULT> | |
10407 | <RESULT IF_PASS COUNT 1> | |
10408 | (?is)\berror: | |
10409 | <END_RESULT> | |
10410 | <RESULT IF_PASS POSITIVE> | |
10411 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10412 | <END_RESULT> | |
10413 | <END_TC> | |
10414 | :exmp. | |
10415 | ||
10416 | .*---------------------------------------------------------------------* | |
10417 | :h3.TTCN-3::StatementBlock->FunctionStatement->VerdictStatements->VariableRef | |
10418 | .*---------------------------------------------------------------------* | |
10419 | :xmp tab=0. | |
10420 | <TC - TTCN-3::StatementBlock->FunctionStatement->VerdictStatements->VariableRef> | |
10421 | <COMPILE> | |
10422 | <VERDICT_LEAF PASS> | |
10423 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10424 | module ModuleA { | |
10425 | type component MyComp {} | |
10426 | function MyFunc1() runs on MyComp { | |
10427 | setverdict(Nonexi01); | |
10428 | } | |
10429 | } | |
10430 | <END_MODULE> | |
10431 | <RESULT IF_PASS COUNT 1> | |
10432 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10433 | <END_RESULT> | |
10434 | <RESULT IF_PASS COUNT 1> | |
10435 | (?is)\berror: | |
10436 | <END_RESULT> | |
10437 | <RESULT IF_PASS POSITIVE> | |
10438 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10439 | <END_RESULT> | |
10440 | <END_TC> | |
10441 | :exmp. | |
10442 | ||
10443 | .*---------------------------------------------------------------------* | |
10444 | :h3.TTCN-3::StatementBlock->FunctionStatement->VerdictStatements->FunctionRef | |
10445 | .*---------------------------------------------------------------------* | |
10446 | :xmp tab=0. | |
10447 | <TC - TTCN-3::StatementBlock->FunctionStatement->VerdictStatements->FunctionRef> | |
10448 | <COMPILE> | |
10449 | <VERDICT_LEAF PASS> | |
10450 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10451 | module ModuleA { | |
10452 | type component MyComp {} | |
10453 | function MyFunc1() runs on MyComp { | |
10454 | setverdict(Nonexi02()); | |
10455 | } | |
10456 | } | |
10457 | <END_MODULE> | |
10458 | <RESULT IF_PASS COUNT 1> | |
10459 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10460 | <END_RESULT> | |
10461 | <RESULT IF_PASS COUNT 1> | |
10462 | (?is)\berror: | |
10463 | <END_RESULT> | |
10464 | <RESULT IF_PASS POSITIVE> | |
10465 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10466 | <END_RESULT> | |
10467 | <END_TC> | |
10468 | :exmp. | |
10469 | ||
10470 | .*---------------------------------------------------------------------* | |
10471 | :h3.TTCN-3::WithStatement->ModuleparDef | |
10472 | .*---------------------------------------------------------------------* | |
10473 | :xmp tab=0. | |
10474 | <TC - TTCN-3::WithStatement->ModuleparDef> | |
10475 | <COMPILE> | |
10476 | <VERDICT_LEAF FAIL> | |
10477 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10478 | module ModuleA { | |
10479 | // ModuleparDef | |
10480 | modulepar { integer par1 := 10 } | |
10481 | with {variant (Nonexi07) ""} | |
10482 | } | |
10483 | <END_MODULE> | |
10484 | <RESULT IF_FAIL COUNT 1> | |
10485 | (?is)\berror: | |
10486 | <END_RESULT> | |
10487 | <RESULT IF_PASS NEGATIVE> | |
10488 | (?im)\bwarning\b | |
10489 | <END_RESULT> | |
10490 | <RESULT IF_PASS NEGATIVE> | |
10491 | (?is)\berror: | |
10492 | <END_RESULT> | |
10493 | <END_TC> | |
10494 | :exmp. | |
10495 | ||
10496 | .*---------------------------------------------------------------------* | |
10497 | :h3.TTCN-3::WithStatement->ImportDef | |
10498 | .*---------------------------------------------------------------------* | |
10499 | :xmp tab=0. | |
10500 | <TC - TTCN-3::WithStatement->ImportDef> | |
10501 | <COMPILE> | |
10502 | <VERDICT_LEAF FAIL> | |
10503 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10504 | module ModuleB { type integer MyINT; } | |
10505 | <END_MODULE> | |
10506 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10507 | module ModuleA { | |
10508 | import from ModuleB all with {variant (Nonexi12) ""}; | |
10509 | } | |
10510 | <END_MODULE> | |
10511 | <RESULT IF_FAIL COUNT 1> | |
10512 | (?is)\berror: | |
10513 | <END_RESULT> | |
10514 | <RESULT IF_PASS NEGATIVE> | |
10515 | (?im)\bwarning\b | |
10516 | <END_RESULT> | |
10517 | <RESULT IF_PASS NEGATIVE> | |
10518 | (?is)\berror: | |
10519 | <END_RESULT> | |
10520 | <END_TC> | |
10521 | :exmp. | |
10522 | ||
10523 | .*---------------------------------------------------------------------* | |
10524 | :h3.TTCN-3::WithStatement->DefOrFieldRef->DefinitionRef->Identifier | |
10525 | .*---------------------------------------------------------------------* | |
10526 | :xmp tab=0. | |
10527 | <TC - TTCN-3::WithStatement->DefOrFieldRef->DefinitionRef->Identifier> | |
10528 | <COMPILE> | |
10529 | <VERDICT_LEAF FAIL> | |
10530 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10531 | module ModuleB { type integer MyINT; } | |
10532 | <END_MODULE> | |
10533 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10534 | module ModuleA { | |
10535 | type record MyType1 { | |
10536 | integer field1 | |
10537 | } with { variant (Nonexi01, Nonexi02) "" } | |
10538 | } | |
10539 | <END_MODULE> | |
10540 | <RESULT IF_FAIL COUNT 2> | |
10541 | (?im)\berror\b.+Invalid field qualifier | |
10542 | <END_RESULT> | |
10543 | <RESULT IF_PASS NEGATIVE> | |
10544 | (?im)\bwarning\b | |
10545 | <END_RESULT> | |
10546 | <RESULT IF_PASS NEGATIVE> | |
10547 | (?is)\berror: | |
10548 | <END_RESULT> | |
10549 | <END_TC> | |
10550 | :exmp. | |
10551 | ||
10552 | .*---------------------------------------------------------------------* | |
10553 | :h3.TTCN-3::WithStatement->DefOrFieldRef->DefinitionRef->FullGroupIdentifier | |
10554 | .*---------------------------------------------------------------------* | |
10555 | :xmp tab=0. | |
10556 | <TC - TTCN-3::WithStatement->DefOrFieldRef->DefinitionRef->FullGroupIdentifier> | |
10557 | <COMPILE> | |
10558 | <VERDICT_LEAF FAIL> | |
10559 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10560 | module ModuleB { type integer MyINT; } | |
10561 | <END_MODULE> | |
10562 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10563 | module ModuleA { | |
10564 | // TR 622: FullGroupIdentifier causes parse error | |
10565 | type record MyType2 { | |
10566 | integer field1 | |
10567 | } with { variant (Nonexi03.Nonexi04) "" } | |
10568 | // DefOrFieldRef->FieldReference->ArrayOrBitRef not yet supported | |
10569 | // DefOrFieldRef->AllRef not yet supported | |
10570 | } | |
10571 | <END_MODULE> | |
10572 | <RESULT IF_FAIL COUNT 1> | |
10573 | (?im)\berror\b.+Invalid field qualifier | |
10574 | <END_RESULT> | |
10575 | <RESULT IF_PASS NEGATIVE> | |
10576 | (?im)\bwarning\b | |
10577 | <END_RESULT> | |
10578 | <RESULT IF_PASS NEGATIVE> | |
10579 | (?is)\berror: | |
10580 | <END_RESULT> | |
10581 | <END_TC> | |
10582 | :exmp. | |
10583 | ||
10584 | .*---------------------------------------------------------------------* | |
10585 | :h3.TTCN-3::WithStatement->ConstDef | |
10586 | .*---------------------------------------------------------------------* | |
10587 | :xmp tab=0. | |
10588 | <TC - TTCN-3::WithStatement->ConstDef> | |
10589 | <COMPILE> | |
10590 | <VERDICT_LEAF FAIL> | |
10591 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10592 | module ModuleB { type integer MyINT; } | |
10593 | <END_MODULE> | |
10594 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10595 | module ModuleA { | |
10596 | const integer MyConst := 10 with {variant (Nonexi05) ""}; | |
10597 | } | |
10598 | <END_MODULE> | |
10599 | <RESULT IF_FAIL COUNT 1> | |
10600 | (?im)\berror\b.+field qualifiers are only allowed for | |
10601 | <END_RESULT> | |
10602 | <END_TC> | |
10603 | :exmp. | |
10604 | ||
10605 | .*---------------------------------------------------------------------* | |
10606 | :h3.TTCN-3::WithStatement->ExtConstDef | |
10607 | .*---------------------------------------------------------------------* | |
10608 | :xmp tab=0. | |
10609 | <TC - TTCN-3::WithStatement->ExtConstDef> | |
10610 | <COMPILE> | |
10611 | <VERDICT_LEAF FAIL> | |
10612 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10613 | module ModuleB { type integer MyINT; } | |
10614 | <END_MODULE> | |
10615 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10616 | module ModuleA { | |
10617 | external const integer MyExtConst with {variant (Nonexi14) ""}; | |
10618 | } | |
10619 | <END_MODULE> | |
10620 | <RESULT IF_FAIL COUNT 1> | |
10621 | (?im)\berror\b.+field qualifiers are only allowed for | |
10622 | <END_RESULT> | |
10623 | <END_TC> | |
10624 | :exmp. | |
10625 | ||
10626 | .*---------------------------------------------------------------------* | |
10627 | :h3.TTCN-3::WithStatement->TemplateDef | |
10628 | .*---------------------------------------------------------------------* | |
10629 | :xmp tab=0. | |
10630 | <TC - TTCN-3::WithStatement->TemplateDef> | |
10631 | <COMPILE> | |
10632 | <VERDICT_LEAF FAIL> | |
10633 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10634 | module ModuleB { type integer MyINT; } | |
10635 | <END_MODULE> | |
10636 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10637 | module ModuleA { | |
10638 | template integer MyTemplate := 10 with {variant (Nonexi06) ""}; | |
10639 | } | |
10640 | <END_MODULE> | |
10641 | <RESULT IF_FAIL COUNT 1> | |
10642 | (?im)\berror\b.+field qualifiers are only allowed for | |
10643 | <END_RESULT> | |
10644 | <END_TC> | |
10645 | :exmp. | |
10646 | ||
10647 | .*---------------------------------------------------------------------* | |
10648 | :h3.TTCN-3::WithStatement->FunctionDef | |
10649 | .*---------------------------------------------------------------------* | |
10650 | :xmp tab=0. | |
10651 | <TC - TTCN-3::WithStatement->FunctionDef> | |
10652 | <COMPILE> | |
10653 | <VERDICT_LEAF FAIL> | |
10654 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10655 | module ModuleB { type integer MyINT; } | |
10656 | <END_MODULE> | |
10657 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10658 | module ModuleA { | |
10659 | function MyFunc() {} with {variant (Nonexi08) ""} | |
10660 | } | |
10661 | <END_MODULE> | |
10662 | <RESULT IF_FAIL COUNT 1> | |
10663 | (?im)\berror\b.+field qualifiers are only allowed for | |
10664 | <END_RESULT> | |
10665 | <END_TC> | |
10666 | :exmp. | |
10667 | ||
10668 | .*---------------------------------------------------------------------* | |
10669 | :h3.TTCN-3::WithStatement->ExtFunctionDef | |
10670 | .*---------------------------------------------------------------------* | |
10671 | :xmp tab=0. | |
10672 | <TC - TTCN-3::WithStatement->ExtFunctionDef> | |
10673 | <COMPILE> | |
10674 | <VERDICT_LEAF FAIL> | |
10675 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10676 | module ModuleB { type integer MyINT; } | |
10677 | <END_MODULE> | |
10678 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10679 | module ModuleA { | |
10680 | external function MyExtFunc() with {variant (Nonexi13) ""} | |
10681 | } | |
10682 | <END_MODULE> | |
10683 | <RESULT IF_FAIL COUNT 1> | |
10684 | (?im)\berror\b.+field qualifiers are only allowed for | |
10685 | <END_RESULT> | |
10686 | <END_TC> | |
10687 | :exmp. | |
10688 | ||
10689 | .*---------------------------------------------------------------------* | |
10690 | :h3.TTCN-3::WithStatement->SignatureDef | |
10691 | .*---------------------------------------------------------------------* | |
10692 | :xmp tab=0. | |
10693 | <TC - TTCN-3::WithStatement->SignatureDef> | |
10694 | <COMPILE> | |
10695 | <VERDICT_LEAF FAIL> | |
10696 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10697 | module ModuleB { type integer MyINT; } | |
10698 | <END_MODULE> | |
10699 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10700 | module ModuleA { | |
10701 | signature MySignature() with {variant (Nonexi09) ""} | |
10702 | } | |
10703 | <END_MODULE> | |
10704 | <RESULT IF_FAIL COUNT 1> | |
10705 | (?im)\berror\b.+field qualifiers are only allowed for | |
10706 | <END_RESULT> | |
10707 | <END_TC> | |
10708 | :exmp. | |
10709 | ||
10710 | .*---------------------------------------------------------------------* | |
10711 | :h3.TTCN-3::WithStatement->TestcaseDef | |
10712 | .*---------------------------------------------------------------------* | |
10713 | :xmp tab=0. | |
10714 | <TC - TTCN-3::WithStatement->TestcaseDef> | |
10715 | <COMPILE> | |
10716 | <VERDICT_LEAF FAIL> | |
10717 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10718 | module ModuleB { type integer MyINT; } | |
10719 | <END_MODULE> | |
10720 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10721 | module ModuleA { | |
10722 | type port MyPortType message {inout integer} | |
10723 | type component MyComp { port MyPortType MyPort } | |
10724 | testcase MyTC() runs on MyComp {} with {variant (Nonexi10) ""} | |
10725 | } | |
10726 | <END_MODULE> | |
10727 | <RESULT IF_FAIL COUNT 1> | |
10728 | (?im)\berror\b.+field qualifiers are only allowed for | |
10729 | <END_RESULT> | |
10730 | <END_TC> | |
10731 | :exmp. | |
10732 | ||
10733 | .*---------------------------------------------------------------------* | |
10734 | :h3.TTCN-3::WithStatement->AltstepDef | |
10735 | .*---------------------------------------------------------------------* | |
10736 | :xmp tab=0. | |
10737 | <TC - TTCN-3::WithStatement->AltstepDef> | |
10738 | <COMPILE> | |
10739 | <VERDICT_LEAF FAIL> | |
10740 | <MODULE TTCN ModuleB ModuleB.ttcn> | |
10741 | module ModuleB { type integer MyINT; } | |
10742 | <END_MODULE> | |
10743 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10744 | module ModuleA { | |
10745 | type port MyPortType message {inout integer} | |
10746 | type component MyComp { port MyPortType MyPort } | |
10747 | altstep MyAltstep() runs on MyComp { [] MyPort.receive {} } with {variant (Nonexi11) ""} | |
10748 | } | |
10749 | <END_MODULE> | |
10750 | <RESULT IF_FAIL COUNT 1> | |
10751 | (?im)\berror\b.+field qualifiers are only allowed for | |
10752 | <END_RESULT> | |
10753 | <END_TC> | |
10754 | :exmp. | |
10755 | ||
10756 | .*---------------------------------------------------------------------* | |
10757 | :h3.TTCN-3::WithStatement->GroupDef test 1 | |
10758 | .*---------------------------------------------------------------------* | |
10759 | :xmp tab=0. | |
10760 | <TC - TTCN-3::WithStatement->GroupDef test 1> | |
10761 | <COMPILE> | |
10762 | <VERDICT_LEAF FAIL> | |
10763 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10764 | module ModuleA { | |
10765 | group grp1 { | |
10766 | type integer int1; | |
10767 | } | |
10768 | with | |
10769 | { | |
10770 | variant (Nonexi14) ""; | |
10771 | }; | |
10772 | } | |
10773 | <END_MODULE> | |
10774 | <RESULT IF_FAIL COUNT 1> | |
10775 | (?im)\berror\b.+field qualifiers are only allowed for | |
10776 | <END_RESULT> | |
10777 | <END_TC> | |
10778 | :exmp. | |
10779 | ||
10780 | .*---------------------------------------------------------------------* | |
10781 | :h3.TTCN-3::WithStatement->GroupDef test 2 | |
10782 | .*---------------------------------------------------------------------* | |
10783 | :xmp tab=0. | |
10784 | <TC - TTCN-3::WithStatement->GroupDef test 2> | |
10785 | <COMPILE> | |
10786 | <VERDICT_LEAF FAIL> | |
10787 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10788 | module ModuleA { | |
10789 | group grp1 { | |
10790 | type integer int1; | |
10791 | } | |
10792 | with | |
10793 | { | |
10794 | variant (int1) ""; | |
10795 | }; | |
10796 | } | |
10797 | <END_MODULE> | |
10798 | <RESULT IF_FAIL COUNT 1> | |
10799 | (?im)\berror\b.+field qualifiers are only allowed for | |
10800 | <END_RESULT> | |
10801 | <END_TC> | |
10802 | :exmp. | |
10803 | ||
10804 | .*---------------------------------------------------------------------* | |
10805 | :h3.TTCN-3::FunctionReference apply on nonexi | |
10806 | .*---------------------------------------------------------------------* | |
10807 | :xmp tab=0. | |
10808 | <TC - TTCN-3::FunctionReference apply on nonexi> | |
10809 | <COMPILE> | |
10810 | <VERDICT_LEAF FAIL> | |
10811 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10812 | module ModuleA { | |
10813 | control { | |
10814 | Nonexi.apply(); | |
10815 | } | |
10816 | } | |
10817 | <END_MODULE> | |
10818 | <RESULT IF_FAIL COUNT 1> | |
10819 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10820 | <END_RESULT> | |
10821 | <RESULT IF_FAIL POSITIVE> | |
10822 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10823 | <END_RESULT> | |
10824 | <END_TC> | |
10825 | :exmp. | |
10826 | ||
10827 | .*---------------------------------------------------------------------* | |
10828 | :h3.TTCN-3::FunctionReference refer to nonexi | |
10829 | .*---------------------------------------------------------------------* | |
10830 | :xmp tab=0. | |
10831 | <TC - TTCN-3::FunctionReference refer to nonexi> | |
10832 | <COMPILE> | |
10833 | <VERDICT_LEAF FAIL> | |
10834 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10835 | module ModuleA { | |
10836 | type function fn_type(); | |
10837 | control { | |
10838 | var fn_type f := refers(Nonexi); | |
10839 | } | |
10840 | } | |
10841 | <END_MODULE> | |
10842 | <RESULT IF_FAIL COUNT 1> | |
10843 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10844 | <END_RESULT> | |
10845 | <RESULT IF_FAIL POSITIVE> | |
10846 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10847 | <END_RESULT> | |
10848 | <END_TC> | |
10849 | :exmp. | |
10850 | ||
10851 | .*---------------------------------------------------------------------* | |
10852 | :h3.TTCN-3::FunctionReference derefer nonexi | |
10853 | .*---------------------------------------------------------------------* | |
10854 | :xmp tab=0. | |
10855 | <TC - TTCN-3::FunctionReference derefer nonexi> | |
10856 | <COMPILE> | |
10857 | <VERDICT_LEAF FAIL> | |
10858 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10859 | module ModuleA { | |
10860 | control { | |
10861 | execute(derefers(Nonexi)()); | |
10862 | } | |
10863 | } | |
10864 | <END_MODULE> | |
10865 | <RESULT IF_FAIL COUNT 1> | |
10866 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10867 | <END_RESULT> | |
10868 | <RESULT IF_FAIL POSITIVE> | |
10869 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10870 | <END_RESULT> | |
10871 | <END_TC> | |
10872 | :exmp. | |
10873 | ||
10874 | .*---------------------------------------------------------------------* | |
10875 | :h3.TTCN-3::FunctionReference apply with Nonexi parameter | |
10876 | .*---------------------------------------------------------------------* | |
10877 | :xmp tab=0. | |
10878 | <TC - TTCN-3::FunctionReference apply with Nonexi parameter> | |
10879 | <COMPILE> | |
10880 | <VERDICT_LEAF FAIL> | |
10881 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10882 | module ModuleA { | |
10883 | type function fn_type(); | |
10884 | function fn() { } | |
10885 | control { | |
10886 | var fn_type f := refers(fn); | |
10887 | f.apply(Nonexi); | |
10888 | } | |
10889 | } | |
10890 | <END_MODULE> | |
10891 | <RESULT IF_FAIL COUNT 1> | |
10892 | (?im)\berror\b.+Too many parameters.+ | |
10893 | <END_RESULT> | |
10894 | <RESULT IF_FAIL POSITIVE> | |
10895 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10896 | <END_RESULT> | |
10897 | <END_TC> | |
10898 | :exmp. | |
10899 | ||
10900 | .*---------------------------------------------------------------------* | |
10901 | :h3.TTCN-3::Nonexi as non-mandatory function parameter | |
10902 | .*---------------------------------------------------------------------* | |
10903 | :xmp tab=0. | |
10904 | <TC - TTCN-3::Nonexi as non-mandatory function parameter> | |
10905 | <COMPILE> | |
10906 | <VERDICT_LEAF FAIL> | |
10907 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10908 | module ModuleA { | |
10909 | function f(in integer i := Nonexi){}; | |
10910 | } | |
10911 | <END_MODULE> | |
10912 | <RESULT IF_FAIL COUNT 1> | |
10913 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10914 | <END_RESULT> | |
10915 | <RESULT IF_FAIL POSITIVE> | |
10916 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10917 | <END_RESULT> | |
10918 | <END_TC> | |
10919 | :exmp. | |
10920 | ||
10921 | .*---------------------------------------------------------------------* | |
10922 | :h3.TTCN-3::Nonexi as non-mandatory function parameter 2 | |
10923 | .*---------------------------------------------------------------------* | |
10924 | :xmp tab=0. | |
10925 | <TC - TTCN-3::Nonexi as non-mandatory function parameter 2> | |
10926 | <COMPILE> | |
10927 | <VERDICT_LEAF FAIL> | |
10928 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10929 | module ModuleA { | |
10930 | function f(integer i:= 1,in integer j := Nonexi, integer k := 1){}; | |
10931 | } | |
10932 | <END_MODULE> | |
10933 | <RESULT IF_FAIL COUNT 1> | |
10934 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10935 | <END_RESULT> | |
10936 | <RESULT IF_FAIL POSITIVE> | |
10937 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10938 | <END_RESULT> | |
10939 | <END_TC> | |
10940 | :exmp. | |
10941 | ||
10942 | .*---------------------------------------------------------------------* | |
10943 | :h3.TTCN-3::Nonexi as non-mandatory altstep parameter | |
10944 | .*---------------------------------------------------------------------* | |
10945 | :xmp tab=0. | |
10946 | <TC - TTCN-3::Nonexi as non-mandatory altstep parameter> | |
10947 | <COMPILE> | |
10948 | <VERDICT_LEAF FAIL> | |
10949 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10950 | module ModuleA { | |
10951 | type port MyPortType message {inout integer} | |
10952 | type component MyComp { port MyPortType MyPort } | |
10953 | altstep MyAltstep(in integer i := Nonexi) runs on MyComp { [] MyPort.receive {} } | |
10954 | } | |
10955 | <END_MODULE> | |
10956 | <RESULT IF_FAIL COUNT 1> | |
10957 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10958 | <END_RESULT> | |
10959 | <RESULT IF_FAIL POSITIVE> | |
10960 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10961 | <END_RESULT> | |
10962 | <END_TC> | |
10963 | :exmp. | |
10964 | ||
10965 | .*---------------------------------------------------------------------* | |
10966 | :h3.TTCN-3::Nonexi as non-mandatory altstep parameter 2 | |
10967 | .*---------------------------------------------------------------------* | |
10968 | :xmp tab=0. | |
10969 | <TC - TTCN-3::Nonexi as non-mandatory altstep parameter 2> | |
10970 | <COMPILE> | |
10971 | <VERDICT_LEAF FAIL> | |
10972 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10973 | module ModuleA { | |
10974 | type port MyPortType message {inout integer} | |
10975 | type component MyComp { port MyPortType MyPort } | |
10976 | altstep MyAltstep(integer i:= 1,in integer j := Nonexi, integer k := 1) runs on MyComp { [] MyPort.receive {} } | |
10977 | } | |
10978 | <END_MODULE> | |
10979 | <RESULT IF_FAIL COUNT 1> | |
10980 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
10981 | <END_RESULT> | |
10982 | <RESULT IF_FAIL POSITIVE> | |
10983 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
10984 | <END_RESULT> | |
10985 | <END_TC> | |
10986 | :exmp. | |
10987 | ||
10988 | .*---------------------------------------------------------------------* | |
10989 | :h3.TTCN-3::Nonexi as non-mandatory testcase parameter | |
10990 | .*---------------------------------------------------------------------* | |
10991 | :xmp tab=0. | |
10992 | <TC - TTCN-3::Nonexi as non-mandatory testcase parameter> | |
10993 | <COMPILE> | |
10994 | <VERDICT_LEAF FAIL> | |
10995 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
10996 | module ModuleA { | |
10997 | type port MyPortType message {inout integer} | |
10998 | type component MyComp { port MyPortType MyPort } | |
10999 | testcase MyTC(in integer i := Nonexi) runs on MyComp {} | |
11000 | } | |
11001 | <END_MODULE> | |
11002 | <RESULT IF_FAIL COUNT 1> | |
11003 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
11004 | <END_RESULT> | |
11005 | <RESULT IF_FAIL POSITIVE> | |
11006 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
11007 | <END_RESULT> | |
11008 | <END_TC> | |
11009 | :exmp. | |
11010 | ||
11011 | .*---------------------------------------------------------------------* | |
11012 | :h3.TTCN-3::Nonexi as non-mandatory testcase parameter 2 | |
11013 | .*---------------------------------------------------------------------* | |
11014 | :xmp tab=0. | |
11015 | <TC - TTCN-3::Nonexi as non-mandatory testcase parameter 2> | |
11016 | <COMPILE> | |
11017 | <VERDICT_LEAF FAIL> | |
11018 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
11019 | module ModuleA { | |
11020 | type port MyPortType message {inout integer} | |
11021 | type component MyComp { port MyPortType MyPort } | |
11022 | testcase MyTC(integer i:= 1,in integer j := Nonexi, integer k := 1) runs on MyComp {} | |
11023 | } | |
11024 | <END_MODULE> | |
11025 | <RESULT IF_FAIL COUNT 1> | |
11026 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
11027 | <END_RESULT> | |
11028 | <RESULT IF_FAIL POSITIVE> | |
11029 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
11030 | <END_RESULT> | |
11031 | <END_TC> | |
11032 | :exmp. | |
11033 | ||
11034 | .*---------------------------------------------------------------------* | |
11035 | :h3.TTCN-3::Function call with nonexi non-mandatory parameter | |
11036 | .*---------------------------------------------------------------------* | |
11037 | :xmp tab=0. | |
11038 | <TC - TTCN-3::Function call with nonexi non-mandatory parameter> | |
11039 | <COMPILE> | |
11040 | <VERDICT_LEAF FAIL> | |
11041 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
11042 | module ModuleA { | |
11043 | function f(integer i:= 1,in integer j := 1, integer k := 1){}; | |
11044 | control{ | |
11045 | f(-,Nonexi,-); | |
11046 | } | |
11047 | } | |
11048 | <END_MODULE> | |
11049 | <RESULT IF_FAIL COUNT 1> | |
11050 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
11051 | <END_RESULT> | |
11052 | <RESULT IF_FAIL POSITIVE> | |
11053 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
11054 | <END_RESULT> | |
11055 | <END_TC> | |
11056 | :exmp. | |
11057 | ||
11058 | .*---------------------------------------------------------------------* | |
11059 | :h3.TTCN-3::Function call with nonexi non-mandatory parameter 2 | |
11060 | .*---------------------------------------------------------------------* | |
11061 | :xmp tab=0. | |
11062 | <TC - TTCN-3::Function call with nonexi non-mandatory parameter 2> | |
11063 | <COMPILE> | |
11064 | <VERDICT_LEAF FAIL> | |
11065 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
11066 | module ModuleA { | |
11067 | function f(integer i:= 1,in integer j := 1, integer k := 1){}; | |
11068 | control{ | |
11069 | f(-,Nonexi); | |
11070 | } | |
11071 | } | |
11072 | <END_MODULE> | |
11073 | <RESULT IF_FAIL COUNT 1> | |
11074 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
11075 | <END_RESULT> | |
11076 | <RESULT IF_FAIL POSITIVE> | |
11077 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
11078 | <END_RESULT> | |
11079 | <END_TC> | |
11080 | :exmp. | |
11081 | ||
11082 | .*---------------------------------------------------------------------* | |
11083 | :h3.TTCN-3::Template parameterised with Nonexi non-mandatory parameter | |
11084 | .*---------------------------------------------------------------------* | |
11085 | :xmp tab=0. | |
11086 | <TC - TTCN-3::Template parameterised with Nonexi non-mandatory parameter> | |
11087 | <COMPILE> | |
11088 | <VERDICT_LEAF FAIL> | |
11089 | <MODULE TTCN ModuleA ModuleA.ttcn> | |
11090 | module ModuleA { | |
11091 | type record rec_type | |
11092 | { | |
11093 | integer a, | |
11094 | integer b | |
11095 | } | |
11096 | template rec_type MyTemplate(in integer x:= Nonexi, in integer y := Nonexi):= | |
11097 | { | |
11098 | a:=x, | |
11099 | b:=y | |
11100 | } | |
11101 | } | |
11102 | <END_MODULE> | |
11103 | <RESULT IF_FAIL COUNT 2> | |
11104 | (?im)\berror\b.+?no.+?definition.+?Nonexi | |
11105 | <END_RESULT> | |
11106 | <RESULT IF_FAIL POSITIVE> | |
11107 | (?im)\bnotify\b.+?\bcode\b.+?\bnot\b.+?\bgenerated\b | |
11108 | <END_RESULT> | |
11109 | <END_TC> | |
11110 | :exmp. | |
11111 | ||
11112 | .*---------------------------------------------------------------------* | |
11113 | :h1.Abbreviations | |
11114 | .*---------------------------------------------------------------------* | |
11115 | :list. | |
11116 | :li D='ASN.1'.Abstract Syntax Notation 1 | |
11117 | :li D='EDML'.Ericsson Document Markup Language | |
11118 | :li D='SA'.Semantic Analyser | |
11119 | :li D='TTCN-3'.Test and Test Control Notation version 3 | |
11120 | :elist. | |
11121 | ||
11122 | .*---------------------------------------------------------------------* | |
11123 | :h1.References | |
11124 | .*---------------------------------------------------------------------* | |
11125 | :list. | |
11126 | :li D='[1]'.3/ETH/RUS-2003:0087 Uen | |
11127 | :nl.Requirement Specification for TITAN's TTCN-3 Semantic Analyser | |
11128 | :li D='[2]'.1/174 02-FCPCA 101 42 Uen | |
11129 | :nl.Statement of Compliance for TITAN project | |
11130 | :li D='[3]'.ETSI ES 201 873-1, v3.0.0 Mockup v1 (2004-03): | |
11131 | :nl.Testing and Test Control Notation version 3., | |
11132 | :nl.Part 1: TTCN-3 Core Language | |
11133 | :elist. | |
11134 | ||
11135 | .*---------------------------------------------------------------------* | |
11136 | :h1.Terminology | |
11137 | .*---------------------------------------------------------------------* | |
11138 | :list. | |
11139 | :li D='TITAN'.Ericsson's TTCN-3 Test Environment | |
11140 | :elist. | |
11141 | ||
11142 | :etext. | |
11143 |