Commit 809e830a authored by zeiss's avatar zeiss
Browse files

No commit message

No commit message
parent 4b6d71d7
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
/*****************************************************************
 ** @author   STF 409
 ** @version  $Rev: 150 $
 ** @purpose  1:15.4, Ensure that an inline template can be accessed as exepcted by the dot notation.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_1504_InlineTemplates_001 {

type port MyMessagePortType message {
	inout MyMessageType
}

type component GeneralComp {
	port MyMessagePortType pt_myPort;
}

type record MyMessageType {
	integer field1,
	charstring field2,
	boolean field3
}

testcase TC_Sem_1504_InlineTemplates_001() runs on GeneralComp {
	if ((MyMessageType:{2,"foobar",true}).field1 == 2) {
		setverdict(pass);
	} else {
		setverdict(fail);
	}
}

control{
    execute(TC_Sem_1504_InlineTemplates_001());
}
}
 No newline at end of file