Commit c10a913a authored by urbant's avatar urbant
Browse files

No commit message

No commit message
parent aca52280
Loading
Loading
Loading
Loading
+7 −6
Original line number Original line Diff line number Diff line
/***************************************************
/***************************************************
 ** @author   STF 433
 ** @author   STF 433 (updated by STF 521)
 ** @version  0.0.1
 ** @version  0.0.2
 ** @purpose  1:27.7, Ensure that the IUT correctly handles attribute definitions and their scoping rules 
 ** @purpose  1:27.7, Ensure that the IUT correctly handles attribute definitions and their scoping rules 
 ** @verdict  pass reject
 ** @verdict  pass reject
 ***************************************************/
 ***************************************************/


module Sem_2707_OptionalAttributes_008 { 
module NegSem_2707_OptionalAttributes_001 { 


	type enumerated EnumeratedType {e_black, e_white};
	type enumerated EnumeratedType {e_black, e_white};


@@ -47,14 +47,15 @@ module Sem_2707_OptionalAttributes_008 {
    type port loopbackPort message {
    type port loopbackPort message {
	  inout MessageType
	  inout MessageType
	} with { optional "implicit omit"}
	} with { optional "implicit omit"}
	// the optional keyword is not forbidden here, has just no effect
	// the optional keyword is forbidden here, because according to the restriction 27.7.a
	// a port type shall not have an optional attribute associated to them directly.  
	
	


type component GeneralComp {	    	    
type component GeneralComp {	    	    
	  port loopbackPort messagePort
	  port loopbackPort messagePort
}
}


testcase TC_Sem_2707_OptionalAttributes_008() runs on GeneralComp {
testcase TC_NegSem_2707_OptionalAttributes_001() runs on GeneralComp {


    var MessageType v_testMessage;
    var MessageType v_testMessage;


@@ -88,7 +89,7 @@ testcase TC_Sem_2707_OptionalAttributes_008() runs on GeneralComp {
}
}


control{
control{
    execute(TC_Sem_2707_OptionalAttributes_008());
    execute(TC_NegSem_2707_OptionalAttributes_001());
}
}


}
}