data/full_repos/permissive/143278/ivltests/br1005.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/143278/ivltests/br1005.v:1: Unsupported: classes\nclass aclass;\n^~~~~\n%Error: Exiting due to 1 error(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module test;

aclass a;

reg [3:0] d;

reg failed = 0;

initial begin
  a = new;
  a.q.push_back(4'd1);
  a.q.push_back(4'd2);
  a.q.push_back(4'd3);
  a.q.push_back(4'd4);
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd1) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd2) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd3) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd4) failed = 1;

  if (failed)
    $display("FAILED");
  else
    $display("PASSED");
end

endmodule
module test;


aclass a;

reg [3:0] d;

reg failed = 0;

initial begin
  a = new;
  a.q.push_back(4'd1);
  a.q.push_back(4'd2);
  a.q.push_back(4'd3);
  a.q.push_back(4'd4);
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd1) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd2) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd3) failed = 1;
  d = a.q.pop_front();
  $display("%h", d);
  if (d !== 4'd4) failed = 1;

  if (failed)
    $display("FAILED");
  else
    $display("PASSED");
end

endmodule