data/full_repos/permissive/143278/ivltests/struct_packed_sysfunct.v
 line:8: before: "packed"
data/verilator_xmls/1b10c684-3e76-44d2-a018-dddcd80d8c3a.xml
module test;

   typedef struct packed {
      logic [7:0] high;
      logic [7:0] low;
   } word_t;


   word_t word0;


   bit err = 0;

   initial begin
      if ($bits(word0     ) !== 16) begin $display("FAILED -- $bits(word0     ) = %d", $bits(word0     )); err=1; end
      if ($bits(word0.high) !==  8) begin $display("FAILED -- $bits(word0.high) = %d", $bits(word0.high)); err=1; end
      if ($bits(word0.low ) !==  8) begin $display("FAILED -- $bits(word0.low ) = %d", $bits(word0.low )); err=1; end

      if (!err) $display("PASSED");
   end

endmodule
module test;


   typedef struct packed {
      logic [7:0] high;
      logic [7:0] low;
   } word_t;


   word_t word0;


   bit err = 0;

   initial begin
      if ($bits(word0     ) !== 16) begin $display("FAILED -- $bits(word0     ) = %d", $bits(word0     )); err=1; end
      if ($bits(word0.high) !==  8) begin $display("FAILED -- $bits(word0.high) = %d", $bits(word0.high)); err=1; end
      if ($bits(word0.low ) !==  8) begin $display("FAILED -- $bits(word0.low ) = %d", $bits(word0.low )); err=1; end

      if (!err) $display("PASSED");
   end

endmodule