/***************************************************
 ** @author   STF 487
 ** @version  0.0.1
 ** @purpose  1:6.2.3, variable-size record-of as a record-of value index on left hand side (less items than record-of dimension)
 ** @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_023 {

	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_023() runs on GeneralComp {

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

	control {
		execute(TC_NegSem_060203_records_and_sets_of_single_types_023());
	}

}
