Commit 044ad01f authored by stancakapost's avatar stancakapost
Browse files

No commit message

No commit message
parent 40c593ba
Loading
Loading
Loading
Loading
+33 −0
Original line number Diff line number Diff line
/***************************************************
 ** @author   STF 409
 ** @version  $Rev: 45 $
 ** @purpose  1:10, Define constants in different scopes
 ** @verdict  pass accept, noexecution
 ***************************************************/
module Syn_10_Constants_004 {
    type component GeneralComp {
        timer t;
        const integer cv_i1 := 10;
    }
    
    const integer c_i1 := 5;
    
    altstep a_alt() runs on GeneralComp {
      const integer cl_j := 12;
      [] t.timeout {
          const integer cl_k := 13;
      }
    }

	function f_fn() runs on GeneralComp {
  		const integer cl_i := 2;
	}

	testcase tc_testcase() runs on GeneralComp {
  		const integer cl_i := 3;
	}
    
    control {
        const integer cl_i := 1;
    }
}
 No newline at end of file