conformance_test/positive_tests added
[deliverable/titan.core.git] / conformance_test / positive_tests / 27_specifying_attributes / 2701_attribute_mechanism / 270101_scope_of_attributes / Syn_270101_ScopeOfAttributes_003.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:27.1.1, Ensure that attributes for individual fields are accepted.
13 ** @verdict pass accept, noexecution
14 *****************************************************************/
15
16 module Syn_270101_ScopeOfAttributes_003 {
17
18 type record of integer IntegerList
19 with {
20 display "colour red";
21 extension "MyRule"
22 }
23
24 const IntegerList c_MyIntegers1 := {0,1,2,3}
25 with {
26 display ([-]) "colour green"
27 }
28
29 const IntegerList c_MyIntegers2 := {0,1,2,3}
30 with {
31 display ([0]) "colour black";
32 }
33
34 type component GeneralComp {}
35
36 testcase TC_Syn_270101_ScopeOfAttributes_003() runs on GeneralComp
37 { setverdict(pass); }
38
39 control
40 { execute(TC_Syn_270101_ScopeOfAttributes_003()); }
41
42 }
This page took 0.031679 seconds and 5 git commands to generate.