data/full_repos/permissive/143278/ivltests/first_last_num.v
 line:7: before: "{"
data/verilator_xmls/c8c49f51-e3a2-4122-b9df-e71c2be6cb09.xml
module main;

   enum byte { RED, ORANGE, YELLOW, GREEN, BLUE, VIOLET,
	  BLACK = 10, WHITE = 'd11
	} color1;


   initial begin
      color1 = RED;
      $display("color1.first == %0d", color1.first);
      $display("color1.last  == %0d", color1.last);
      $display("color1.num   == %0d", color1.num);

      if (color1.first !== RED) begin
	 $display("FAILED");
	 $finish;
      end

      if (color1.last !== WHITE) begin
	 $display("FAILED");
	 $finish;
      end

      if (color1.num !== 8) begin
	 $display("FAILED");
	 $finish;
      end

      $display("PASSED");
   end

endmodule
module main;


   enum byte { RED, ORANGE, YELLOW, GREEN, BLUE, VIOLET,
	  BLACK = 10, WHITE = 'd11
	} color1;


   initial begin
      color1 = RED;
      $display("color1.first == %0d", color1.first);
      $display("color1.last  == %0d", color1.last);
      $display("color1.num   == %0d", color1.num);

      if (color1.first !== RED) begin
	 $display("FAILED");
	 $finish;
      end

      if (color1.last !== WHITE) begin
	 $display("FAILED");
	 $finish;
      end

      if (color1.num !== 8) begin
	 $display("FAILED");
	 $finish;
      end

      $display("PASSED");
   end

endmodule