Debian Codegraph @

regression_test/compileonly/mfgen-xsd/tpd/TopMain.ttcn

raw
1 /******************************************************************************
2 * Copyright (c) 2000-2021 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 v2.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 *
8 * Contributors:
9 * Szabo, Bence Janos
10 *
11 ******************************************************************************/
12 module TopMain {
13
14 import from www_example_org_TopDefinitions all;
15 import from MainExt all;
16 import from MainExt2 all;
17
18 type component EmptyCT {}
19
20 const TopInt topInt := 5;
21
22 testcase tc_test() runs on EmptyCT {
23 var integer tempInt := topInt;
24 if (tempInt == 5) {
25 setverdict(pass);
26 } else {
27 setverdict(fail);
28 }
29 var universal charstring topStr := myString & myString2;
30 if (topStr == "almafaalmafa") {
31 setverdict(pass);
32 } else {
33 setverdict(fail);
34 }
35 }
36
37 control {
38 execute(tc_test());
39 }
40
41 }
42