开发者

gcov line count is different from no of lines in source code

开发者 https://www.devze.com 2022-12-29 22:34 出处:网络
output of gcov says no of lines executed 70 % of 10 but my code has more than 10 lines.. it does not count braces , else statement

output of gcov says no of lines executed 70 % of 10

but my code has more than 10 lines..

it does not count braces , else statement

开发者_开发知识库please help ..


gcov only counts lines of code that actually make it into the binary - braces are just part of the syntax.

Presumably the else is being optimized/compiled out?

0

精彩评论

暂无评论...
验证码 换一张
取 消