Files
sv2v/test/basic/function_reorder_resolve.sv
Zachary Snow 8c967ea9c7 cast function generated output stability
- cast functions in separate scopes are no longer omitted or removed
- package item reordering excludes locally declared names
- test runner ensures output is stable after first iteration
2021-01-24 14:29:54 -06:00

16 lines
376 B
Systemverilog

module top;
parameter YES = 1;
if (YES) begin
function automatic [31:0] help;
input [31:0] inp;
help = inp + 1;
endfunction
initial $display("A %0d", help(0));
end
function automatic [31:0] help;
input [31:0] inp;
help = inp + 2;
endfunction
initial $display("B %0d", help(0));
endmodule