/*****************************************************************
 ** @author   STF 548
 ** @version  0.0.1
 ** @purpose  1:27.6, Verify that a single extension attribute can be defined
 ** @verdict  pass accept, ttcn3verdict:pass
 *****************************************************************/

// The following requirement is tested:
// Extension attributes can be used for proprietary extensions to TTCN-3. The with statement may contain
// any number of extension attributes.

module Sem_2706_extension_attributes_001 {

    type component GeneralComp {
	}

	type charstring MyType with { extension "My custom extension" };

	type record of universal charstring RoUC;

	testcase TC_Sem_2706_extension_attributes_001 () runs on GeneralComp {
		var RoUC v_ext := MyType.extension;
		if(v_ext == { "My custom extension" }) {
			setverdict(pass);
		} else {
			setverdict(fail);
		}
	}

	control{
		execute(TC_Sem_2706_extension_attributes_001());
	}

}