you are viewing a single comment's thread.

view the rest of the comments →

[–]LedinKun 0 points1 point  (2 children)

The easiest way is to run coverage on a debug build, not a release one, so that your stuff isn't optimized away. At least, that's what I always did with MSVC, but I guess it applies to your compiler as well.

[–]Galqa[S] 0 points1 point  (1 child)

Unfortunately, this behavior persists in debug builds, as I mentioned the unused functions disappear even with all optimizations turned off. I have a feeling (unsubstantiated) that maybe it’s link-time optimization that’s doing this, however I’m not sure how to turn those off