data/full_repos/permissive/143278/ivltests/sv_darray_signed.v
 line:3: before: ";"
1: b'%Error: data/full_repos/permissive/143278/ivltests/sv_darray_signed.v:10: Unsupported: Dynamic array new\n    s8 = new[2];\n         ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_darray_signed.v:11: Unsupported: Dynamic array new\n    u8 = new[2];\n         ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_darray_signed.v:17: syntax error, unexpected IDENTIFIER, expecting STRING\n    $sformat(res, fmt, s8[0]);\n                  ^~~\n%Error: data/full_repos/permissive/143278/ivltests/sv_darray_signed.v:24: syntax error, unexpected IDENTIFIER, expecting STRING\n    $swrite(res, u8[0]);\n                 ^~\n%Error: Exiting due to 4 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module main;

  bit pass;
  bit signed [7:0] s8[];
  bit [7:0] u8[];
  string res, fmt;

  initial begin
    pass = 1'b1;
    s8 = new[2];
    u8 = new[2];
    s8[0] = -1;
    u8[0] = -1;

    fmt = "%0d";
    $display(fmt, s8[0]);
    $sformat(res, fmt, s8[0]);
    if (res != "-1") begin
      $display("Failed: expected '-1', got '%s'", res);
      pass = 1'b0;
    end

    $display(fmt, u8[0]);
    $swrite(res, u8[0]);
    if (res != "255") begin
      $display("Failed: expected '255', got '%s'", res);
      pass = 1'b0;
    end

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


  bit pass;
  bit signed [7:0] s8[];
  bit [7:0] u8[];
  string res, fmt;

  initial begin
    pass = 1'b1;
    s8 = new[2];
    u8 = new[2];
    s8[0] = -1;
    u8[0] = -1;

    fmt = "%0d";
    $display(fmt, s8[0]);
    $sformat(res, fmt, s8[0]);
    if (res != "-1") begin
      $display("Failed: expected '-1', got '%s'", res);
      pass = 1'b0;
    end

    $display(fmt, u8[0]);
    $swrite(res, u8[0]);
    if (res != "255") begin
      $display("Failed: expected '255', got '%s'", res);
      pass = 1'b0;
    end

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