gcov测试代码覆盖率的命令

来源:互联网 发布:炒股是哪个软件 编辑:程序博客网 时间:2024/05/23 16:07
编译:gcc -fprofile-arcs -ftest-coverage -o test a.c
运行:./test
最后运行:gcov a.c即可
0 0