iverilog/ivtest/ivltests/pr1950282.v

11 lines
228 B
Coq
Raw Normal View History

module test;
function integer fn (input integer a, b, input integer c);
fn = ((a > b) ? a : b) + c;
endfunction
initial begin
if (fn(2, 4, 3) != 7) $display("Failed");
else $display("PASSED");
end
endmodule