// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain
// SPDX-FileCopyrightText: 2025 Antmicro
// SPDX-License-Identifier: CC0-1.0

/* verilator lint_off COVERIGN */
class myClass;
  covergroup embeddedCg;

  endgroup

  function new();
    real r;
    embeddedCg = new();
    embeddedCg.sample();
    r = embeddedCg.get_coverage();
  endfunction
endclass

class secondClass;
  covergroup embeddedCg;

  endgroup

  function new();
    real r;
    embeddedCg = new();
    embeddedCg.sample();
    r = embeddedCg.get_coverage();
  endfunction
endclass
