data/full_repos/permissive/143278/ivltests/br_gh361.v
 line:3: before: "logic"
data/verilator_xmls/d3d76457-58ff-46a7-a545-c17ec23aceeb.xml
module a();

   typedef enum logic[4:0] {
      EXC_A                = 0,
      EXC_B                = 1,
      EXC_C                = 2
   } exc_code_t;

   function exc_code_t func1(bit inx);
      exc_code_t rVal;
      case(inx)
         1 : rVal = EXC_C;
         0:  rVal = EXC_B;
         default: rVal = EXC_A;
      endcase
      return(rVal);
   endfunction
   exc_code_t exc_code;
   initial begin

      exc_code = func1(1'b1);
      if(exc_code== EXC_C) begin
         $display("PASSED");
         $finish;
      end
      $display("FAILED");
      $finish;
   end
endmodule
module a();


   typedef enum logic[4:0] {
      EXC_A                = 0,
      EXC_B                = 1,
      EXC_C                = 2
   } exc_code_t;

   function exc_code_t func1(bit inx);
      exc_code_t rVal;
      case(inx)
         1 : rVal = EXC_C;
         0:  rVal = EXC_B;
         default: rVal = EXC_A;
      endcase
      return(rVal);
   endfunction
   exc_code_t exc_code;
   initial begin

      exc_code = func1(1'b1);
      if(exc_code== EXC_C) begin
         $display("PASSED");
         $finish;
      end
      $display("FAILED");
      $finish;
   end
endmodule