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:10, Set type used as a constant with optional fields
13 ** @verdict pass accept, ttcn3verdict:pass
14 ***************************************************/
15 module Sem_10_Constants_009 {
20 boolean field2 optional,
21 charstring field3 optional
25 type component GeneralComp {
28 testcase TC_Sem_10_Constants_009() runs on GeneralComp {
29 const MySetType c_mST3 := {field1 := '1010'B,
33 if (not isbound(c_mST3.field2) and
34 not isbound(c_mST3.field3) and
35 match(c_mST3.field1, '1010'B))
45 execute(TC_Sem_10_Constants_009());