Skip to content

Commit

Permalink
Merge pull request #946 from diffblue/task_invocation1
Browse files Browse the repository at this point in the history
Verilog: KNOWNBUG test for task invocation without parentheses
  • Loading branch information
tautschnig authored Jan 26, 2025
2 parents 5ffa8e0 + d4845d1 commit 7dfd0f2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions regression/verilog/tasks/task_invocation1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
KNOWNBUG
task_invocation1.sv

^EXIT=0$
^SIGNAL=0$
--
^warning: ignoring
--
The parser rejects invocations without ().
12 changes: 12 additions & 0 deletions regression/verilog/tasks/task_invocation1.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module top(output reg [31:0] y);

task my_task;
y=123;
endtask

// the parentheses are optional
always_comb my_task;

assert final (y==123);

endmodule

0 comments on commit 7dfd0f2

Please sign in to comment.