mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-09-02 21:48:38 +02:00
Check that it is possible to define the data type of a non-ANSI task port in a separate declaration from the port direction. Add tests for both the type declared before the port direction and for the type declared after the port direction. Signed-off-by: Lars-Peter Clausen <[email protected]>
19 lines
354 B
Verilog
19 lines
354 B
Verilog
// Check that it is possible to declare the data type for a string type task
|
|
// port separately from the direction for non-ANSI style port declarations.
|
|
|
|
module test;
|
|
|
|
task t;
|
|
input x;
|
|
string x;
|
|
if (x == "TEST") begin
|
|
$display("PASSED");
|
|
end else begin
|
|
$display("FAILED");
|
|
end
|
|
endtask
|
|
|
|
initial t("TEST");
|
|
|
|
endmodule
|