Re: [NEED HELP][GCOV] uncoverage virtual destructor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2 Mar 2023 at 12:43, Nguyen Duc Sy wrote:
> but I don't understand why this line is uncovered:
> function _ZN4BaseD0Ev called 0 returned 0% blocks executed 0%
>     #####:   11:    virtual ~Base(){
>         -:   12:        cout << "Base Destructor called\n";
>     #####:   13:    }
>
> Could this be a bug in G++/Gcov?

No, your program never uses the D0 destructor variant. Try:

Base* b = new Base();
delete b;



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux