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
9 * Adrien Kirjak – initial implementation
12 ** @purpose 1:6.2.0.6, ensure that record values can be anytype
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_060206_anytype_009 {
19 anytype cs1 //Record type MyRec element is an anytype data
22 type component GeneralComp {
27 testcase TC_Sem_060206_anytype_009() runs on GeneralComp {
29 R.cs1.charstring := "abc"; // cs1 in R record is now charstring
30 c.charstring := R.cs1.charstring; // anytype c becomes a charstring
32 R.cs1.integer := 15; // cs1 in R record now integer
33 d.integer := R.cs1.integer; //anytype d becomes integer
36 if ( match(c.charstring, "abc") and match(d.integer, 15)) {
46 execute(TC_Sem_060206_anytype_009());
51 extension "anytype charstring, integer"