/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:6.2.3, variable-size record-of as a record-of value index on right hand side
 ** @verdict  pass reject
 ***************************************************/

// The following requirement is tested:
// For nested record of or set of types, an array or record of integer restricted
// to a single size can be used as a short-hand notation for a nested index
// notation.

module NegSem_060203_records_and_sets_of_single_types_022 {

	type component GeneralComp {
	}

    type record of integer Indexer;
	type record of record of integer RoRoI;

	testcase TC_NegSem_060203_records_and_sets_of_single_types_022() runs on GeneralComp {

		var RoRoI v_rec := {{0, 1}, {2, 3}};
        var Indexer v_index := { 1, 0 }
		if (v_rec[v_index] == 2) {
			setverdict(pass);
		} else {
			setverdict(fail);
		}
	}

	control {
		execute(TC_NegSem_060203_records_and_sets_of_single_types_022());
	}

}
