⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcov-6.c

📁 this is a gcc file, you can download it and learn its usetility, for further detail please look at t
💻 C
字号:
/* Check that call return percentages are reported correctly by gcov,   along with line counts and branch percentages.  This test case is   meant to be simple, as it was added at the same time that checking   for call return percentages was added.  *//* { dg-options "-fprofile-arcs -ftest-coverage" } *//* { dg-do run { target native } } */int val;voidfoo (int i){  					/* branch(80) */  if (i < 0)				/* count(5) */    					/* branch(end) */    					/* returns(0) */    exit (0);				/* count(1) */  					/* returns(end) */  val += i;				/* count(4) */}intmain(){  int i;  					/* returns(100) */  foo (100);				/* count(1) */  					/* returns(end) */  for (i = 2; i > -10; i--)    					/* returns(75) */    foo (i);				/* count(4) */  					/* returns(end) */}/* { dg-final { run-gcov -b gcov-6.c } } */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -