mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Tests: Update static test.
This commit is contained in:
parent
4272f2116e
commit
fceedd9f4d
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user