/*****************************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @purpose  1:15.6.3, Ensure that access outside permutation fields is allowed and works as expected.
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

module Sem_150603_ReferencingRecordOfAndSetElements_005 {

    type component GeneralComp { }

    type record of integer RoI;

    testcase TC_Sem_150603_ReferencingRecordOfAndSetElements_005() runs on GeneralComp {
        var template RoI m_one;
        var template integer m_two;

        m_one := {permutation(0,1,3,?),2,?};
        // assignment should yield ?
        m_two := m_one[5];

        if (match(5,m_two)) {
            setverdict(pass);
        } else {
            setverdict(fail);
        }
    }

    control{
        execute(TC_Sem_150603_ReferencingRecordOfAndSetElements_005());
    }



}