Tests: Update static test.

This commit is contained in:
Wilson Snyder 2020-04-19 21:18:57 -04:00
parent 4272f2116e
commit fceedd9f4d

View File

@ -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
@ -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");