/***************************************************
 ** @author   STF 409
 ** @version  0.0.1
 ** @desc     Test cases for clause 5.2 Scope rules
 ** @purpose  1:5.2, Ensure that the IUT correctly handles definitions of local scope
 ** @verdict  pass reject
 ***************************************************/
module NegSem_0502_Scope_002 {

type component GeneralComp {
    var integer vc_component := 0;
}

function f_funcScope() runs on GeneralComp {
    var integer v_function := 1;
}

testcase TC_NegSem_0502_Scope_002() runs on GeneralComp  {
    if ( match(v_control, 0) ){
    }
}

control{
    var integer v_control := 0;
    execute(TC_NegSem_0502_Scope_002());
}

}
