iverilog/ivtest/ivltests/br_gh25a.v

23 lines
315 B
Verilog

// Regression test for GitHub issue 25
// This should result in a compile-time error when the language generation
// is 1364-2005 or earlier.
function test(input i);
begin
test = i;
end
endfunction
module tb;
initial begin
if (test(1))
$display("PASSED");
else
$display("FAILED");
end
endmodule