data/full_repos/permissive/143278/ivltests/pr3576165.v
 line:3: before: "reg"
1: b'%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr3576165.v:14: Unsupported: Ignoring delay on this delayed statement.\n    #1;\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/pr3576165.v:21: Unsupported: Ignoring delay on this delayed statement.\n    #1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/143278/ivltests/pr3576165.v:27: Unsupported: Ignoring delay on this delayed statement.\n    #1;\n    ^\n%Error: Exiting due to 3 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module top;
  reg pass;
  enum reg[0:0] { IDLE = 1'b0,
                  BUSY = 1'b1
                } state, next;

  initial begin
    pass = 1'b1;
    next = IDLE;
    if (state !== 1'bx) begin
      $display("FAILED initial state, got %b", state);
      pass = 1'b0;
    end
    #1;
    state = next;
    if (state !== 1'b0) begin
      $display("FAILED idle state, got %b", state);
      pass = 1'b0;
    end
    next = BUSY;
    #1;
    state <= next;
    if (state !== 1'b0) begin
      $display("FAILED still idle state, got %b", state);
      pass = 1'b0;
    end
    #1;
    if (state !== 1'b1) begin
      $display("FAILED busy state, got %b", state);
      pass = 1'b0;
    end
    if (pass) $display("PASSED");
  end

endmodule
module top;

  reg pass;
  enum reg[0:0] { IDLE = 1'b0,
                  BUSY = 1'b1
                } state, next;

  initial begin
    pass = 1'b1;
    next = IDLE;
    if (state !== 1'bx) begin
      $display("FAILED initial state, got %b", state);
      pass = 1'b0;
    end
    #1;
    state = next;
    if (state !== 1'b0) begin
      $display("FAILED idle state, got %b", state);
      pass = 1'b0;
    end
    next = BUSY;
    #1;
    state <= next;
    if (state !== 1'b0) begin
      $display("FAILED still idle state, got %b", state);
      pass = 1'b0;
    end
    #1;
    if (state !== 1'b1) begin
      $display("FAILED busy state, got %b", state);
      pass = 1'b0;
    end
    if (pass) $display("PASSED");
  end

endmodule