Skip to content

Move class extern definitions to inside class #14

@wsnyder

Description

@wsnyder

Below is the current minimization for a "Hello" output:

module t;
  class C;
    extern function void f;
  endclass
  function void C::f();
    $display("Hello");
  endfunction
  initial begin
    C c;
    c = new;
    c.f();
  end
endmodule

Would be nice in a late stage to try to move extern functions into the class, as I see this being a common missing reduction from many UVM reductions. I can appreciate if this is too difficult. Thanks for considering.

module t;
  class C;
    function void f();
      $display("Hello");
    endfunction
  endclass
  initial begin
    C c;
    c = new;
    c.f();
  end
endmodule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions