data/full_repos/permissive/143278/ivltests/wait_fork.v
 line:13: before: "fork"
1: b'%Error: data/full_repos/permissive/143278/ivltests/wait_fork.v:8: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/wait_fork.v:9: Unsupported: Ignoring delay on this delayed statement.\n      #3 res[3] = 1\'b1;\n      ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/wait_fork.v:10: Unsupported: Ignoring delay on this delayed statement.\n      #4 res[4] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/wait_fork.v:13: Unsupported: fork statements\n    fork\n    ^~~~\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/wait_fork.v:14: Unsupported: Ignoring delay on this delayed statement.\n      #1 res[1] = 1\'b1;\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/wait_fork.v:15: Unsupported: Ignoring delay on this delayed statement.\n      #2 res[2] = 1\'b1;\n      ^\n%Error: data/full_repos/permissive/143278/ivltests/wait_fork.v:23: Unsupported: wait fork statements\n    wait fork;\n    ^~~~\n%Error: Exiting due to 3 error(s), 4 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg [4:1] res;
  reg pass;

  initial begin
    pass = 1'b1;
    res = 4'b0000;
    fork
      #3 res[3] = 1'b1;
      #4 res[4] = 1'b1;
    join_none

    fork
      #1 res[1] = 1'b1;
      #2 res[2] = 1'b1;
    join_any

    if (res != 4'b0001) begin
      $display("Error: Only first process should have run: %b", res);
      pass = 1'b0;
    end

    wait fork;
    if (res != 4'b1111) begin
      $display("Error: All processes should have run: %b", res);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule
module top;

  reg [4:1] res;
  reg pass;

  initial begin
    pass = 1'b1;
    res = 4'b0000;
    fork
      #3 res[3] = 1'b1;
      #4 res[4] = 1'b1;
    join_none

    fork
      #1 res[1] = 1'b1;
      #2 res[2] = 1'b1;
    join_any

    if (res != 4'b0001) begin
      $display("Error: Only first process should have run: %b", res);
      pass = 1'b0;
    end

    wait fork;
    if (res != 4'b1111) begin
      $display("Error: All processes should have run: %b", res);
      pass = 1'b0;
    end

    if (pass) $display("PASSED");
  end
endmodule