conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 07_expressions / 0701_operators / 070103_relational_operators / NegSyn_070103_RelationalOperators_002.ttcn
1 /******************************************************************************
2 * Copyright (c) 2000-2016 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 * Contributors:
9 * Adrien Kirjak – initial implementation
10 *
11 ** @version 0.0.1
12 ** @purpose 1:7.1.3, Ensure that the less operator on address can not be evaluated.
13 ** @verdict pass reject, noexecution
14 *****************************************************************/
15
16 module NegSyn_070103_RelationalOperators_002 {
17
18 type component GeneralComp {
19 }
20
21 type integer address;
22
23 testcase TC_NegSyn_070103_RelationalOperators_002() runs on GeneralComp {
24
25 var address My_address :=-1;
26
27 //error, not allowed
28 if (My_address < null)
29 {
30 setverdict(pass, My_address);
31 } else {
32 setverdict(fail,My_address);
33 }
34 }
35
36 control{
37 execute(TC_NegSyn_070103_RelationalOperators_002());
38 }
39
40 }
This page took 0.031713 seconds and 5 git commands to generate.