iverilog/ivtest/ivltests/pr3015421.v

18 lines
470 B
Coq
Raw Normal View History

// This test verifies that an incorrect function and task definition
// does not crash the compiler.
module main();
// A number of errors here: int and return are not supported
// (SystemVerilog), so the function definition will fail. The
// return should also be inside the begin/end pair.
function int pick;
input myvar;
begin
end
return 0
endfunction
// This is a syntax error missing ';' on the task line.
task foo
endtask
endmodule