sv2v/test/core/package_decl_reorder.v

9 lines
187 B
Verilog

module top;
function automatic integer func;
input integer inp;
func = inp * 2;
endfunction
localparam integer X = func(1);
initial $display(X);
endmodule