diff --git a/test_regress/t/t_var_static.v b/test_regress/t/t_var_static.v index 9290a4c5c..67f772591 100644 --- a/test_regress/t/t_var_static.v +++ b/test_regress/t/t_var_static.v @@ -20,7 +20,7 @@ module t (/*AUTOARG*/ static int st = 2; st++; return st; endfunction function int f_no_au (); - automatic int st = 2; st++; return st; + automatic int au = 2; au++; return au; endfunction function static int f_st_no (); @@ -30,17 +30,17 @@ module t (/*AUTOARG*/ static int st = 2; st++; return st; endfunction function static int f_st_au (); - automatic int st = 2; st++; return st; + automatic int au = 2; au++; return au; endfunction function automatic int f_au_no (); - int st = 2; st++; return st; + int au = 2; au++; return au; endfunction function automatic int f_au_st (); static int st = 2; st++; return st; endfunction function automatic int f_au_au (); - automatic int st = 2; st++; return st; + automatic int au = 2; au++; return au; endfunction initial begin @@ -66,7 +66,7 @@ module t (/*AUTOARG*/ `checkh(f_au_au(), 3); // end - + int cyc = 0; always @ (posedge clk) begin int ist1; @@ -88,7 +88,7 @@ module t (/*AUTOARG*/ else if (cyc == 1) begin `checkh(ist1, 11); `checkh(ist2, 21); - `checkh(iau3, 30); + `checkh(iau3, 0); end else if (cyc == 5) begin $write("*-* All Finished *-*\n");